diff --git a/.github/.keepalive b/.github/.keepalive new file mode 100644 index 0000000..e16ecb2 --- /dev/null +++ b/.github/.keepalive @@ -0,0 +1 @@ +2024-08-01T02:46:02.410Z diff --git a/.gitignore b/.gitignore index 49b206b..4fdc97c 100644 --- a/.gitignore +++ b/.gitignore @@ -101,6 +101,8 @@ docs/**/node_modules/ pids *.pid *.seed +yarn.lock +package-lock.json # Typescript # ############## diff --git a/CHANGELOG.md b/CHANGELOG.md index caffac5..22e135b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@
-## Unreleased (2024-07-28) +## Unreleased (2024-08-01)
@@ -12,7 +12,7 @@
-- [`2777e4b`](https://github.com/stdlib-js/stdlib/commit/2777e4be161869d09406e3b17947d24c64b47af2) - **bench:** resolve lint errors in benchmarks _(by Athan Reines)_ +- [`22c4d29`](https://github.com/stdlib-js/stdlib/commit/22c4d29898e2b5bb4cb071a6b7f62536027eaf28) - **docs:** remove blank line _(by Athan Reines)_
@@ -40,45 +40,7 @@ A total of 1 person contributed to this release. Thank you to this contributor: ## 0.2.1 (2024-07-27) -
- -### Features - -- [`3c795b3`](https://github.com/stdlib-js/stdlib/commit/3c795b3f102eabd8df616dee6018c0c18f28b00b) - add C implementation for `math/base/assert/is-nonpositive-integer` - -
- - - -
- -### Commits - -
- -- [`d04dcbd`](https://github.com/stdlib-js/stdlib/commit/d04dcbd6dc3b0bf4a89bd3947d317fa5ff15bb38) - **docs:** remove private annotations in C comments _(by Philipp Burckhardt)_ -- [`d40dbaf`](https://github.com/stdlib-js/stdlib/commit/d40dbafc25e3e10c8fa83f5b4203db97c289823c) - **chore:** update package meta data [(#1812)](https://github.com/stdlib-js/stdlib/pull/1812) _(by stdlib-bot)_ -- [`3c795b3`](https://github.com/stdlib-js/stdlib/commit/3c795b3f102eabd8df616dee6018c0c18f28b00b) - **feat:** add C implementation for `math/base/assert/is-nonpositive-integer` _(by Aman Bhansali, Pranav)_ - -
- -
- - - -
- -### Contributors - -A total of 3 people contributed to this release. Thank you to the following contributors: - -- Aman Bhansali -- Philipp Burckhardt -- Pranav - -
- - +No changes reported for this release.
@@ -118,55 +80,7 @@ No changes reported for this release. ## 0.1.0 (2023-09-23) -
- -### Features - -- [`58832ee`](https://github.com/stdlib-js/stdlib/commit/58832eef6d93e6519622148242600eae93dca4d9) - update minimum TypeScript version - -
- - - -
- -### BREAKING CHANGES - -- [`58832ee`](https://github.com/stdlib-js/stdlib/commit/58832eef6d93e6519622148242600eae93dca4d9): update minimum TypeScript version -- [`58832ee`](https://github.com/stdlib-js/stdlib/commit/58832eef6d93e6519622148242600eae93dca4d9): update minimum TypeScript version to 4.1 - - - To migrate, users should upgrade their TypeScript version to at least version 4.1. - -
- - - -
- -### Commits - -
- -- [`58832ee`](https://github.com/stdlib-js/stdlib/commit/58832eef6d93e6519622148242600eae93dca4d9) - **feat:** update minimum TypeScript version _(by Philipp Burckhardt)_ -- [`b734544`](https://github.com/stdlib-js/stdlib/commit/b734544a52783cb7f5cf1115f4355cabe46d0abe) - **refactor:** use strictEqual checks _(by Philipp Burckhardt)_ - -
- -
- - - -
- -### Contributors - -A total of 1 person contributed to this release. Thank you to this contributor: - -- Philipp Burckhardt - -
- - +No changes reported for this release.
diff --git a/README.md b/README.md index 2c9610d..851c141 100644 --- a/README.md +++ b/README.md @@ -270,6 +270,11 @@ For more information on the project, filing bug reports and feature requests, an --- +## License + +See [LICENSE][stdlib-license]. + + ## Copyright Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. @@ -316,6 +321,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. [esm-readme]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/blob/esm/README.md [branches-url]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/blob/main/branches.md +[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/math-base-assert-is-nonpositive-integer/main/LICENSE + [ieee754]: https://en.wikipedia.org/wiki/IEEE_754-1985 diff --git a/dist/index.js b/dist/index.js index f1ee91c..b52add7 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,30 +1,5 @@ +"use strict";var s=function(r,e){return function(){return e||r((e={exports:{}}).exports,e),e.exports}};var i=s(function(c,t){ +var o=require('@stdlib/math-base-special-floor/dist');function n(r){return o(r)===r&&r<=0}t.exports=n +});var u=i();module.exports=u; /** @license Apache-2.0 */ - -'use strict'; - -/** -* Test if a finite double-precision floating-point number is a nonpositive integer. -* -* @module @stdlib/math-base-assert-is-nonpositive-integer -* -* @example -* var isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -* -* var bool = isNonPositiveInteger( -1.0 ); -* // returns true -* -* bool = isNonPositiveInteger( 0.0 ); -* // returns true -* -* bool = isNonPositiveInteger( 10.0 ); -* // returns false -*/ - -// MODULES // - -var main = require( './main.js' ); - - -// EXPORTS // - -module.exports = main; +//# sourceMappingURL=index.js.map diff --git a/dist/main.js b/dist/main.js deleted file mode 100644 index c18312f..0000000 --- a/dist/main.js +++ /dev/null @@ -1,53 +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 floor = require( '@stdlib/math-base-special-floor' ); - - -// MAIN // - -/** -* Tests if a finite double-precision floating-point number is a nonpositive integer. -* -* @param {number} x - value to test -* @returns {boolean} boolean indicating whether the value is a nonpositive integer -* -* @example -* var bool = isNonPositiveInteger( -1.0 ); -* // returns true -* -* @example -* var bool = isNonPositiveInteger( 0.0 ); -* // returns true -* -* @example -* var bool = isNonPositiveInteger( 10.0 ); -* // returns false -*/ -function isNonPositiveInteger( x ) { - return (floor(x) === x && x <= 0); -} - - -// EXPORTS // - -module.exports = isNonPositiveInteger; diff --git a/dist/native.js b/dist/native.js deleted file mode 100644 index ab378e1..0000000 --- a/dist/native.js +++ /dev/null @@ -1,51 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2024 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT 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 Boolean = require( '@stdlib/boolean-ctor' ); -var addon = require( './../src/addon.node' ); - - -// MAIN // - -/** -* Tests if a finite double-precision floating-point number is a nonpositive integer. -* -* @private -* @param {number} x - value to test -* @returns {boolean} boolean indicating whether the number is nonpositive integer -* -* @example -* var bool = isNonPositiveInteger( -2.0 ); -* // returns true -* -* @example -* var bool = isNonPositiveInteger( 5.0 ); -* // returns false -*/ -function isNonPositiveInteger( x ) { - return Boolean( addon( x ) ); -} - - -// EXPORTS // - -module.exports = isNonPositiveInteger;