@stdlib/math-base-assert-is-nonpositive-integer 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/NOTICE CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2024 The Stdlib Authors.
1
+ Copyright (c) 2016-2026 The Stdlib Authors.
package/README.md CHANGED
@@ -55,7 +55,7 @@ var isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-int
55
55
 
56
56
  #### isNonPositiveInteger( x )
57
57
 
58
- Tests if a finite [double-precision floating-point number][ieee754] is a nonpositive `integer`.
58
+ Tests if a finite [double-precision floating-point number][ieee754] is a nonpositive integer.
59
59
 
60
60
  ```javascript
61
61
  var bool = isNonPositiveInteger( -1.0 );
@@ -267,7 +267,7 @@ See [LICENSE][stdlib-license].
267
267
 
268
268
  ## Copyright
269
269
 
270
- Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
270
+ Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors].
271
271
 
272
272
  </section>
273
273
 
@@ -280,11 +280,11 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
280
280
  [npm-image]: http://img.shields.io/npm/v/@stdlib/math-base-assert-is-nonpositive-integer.svg
281
281
  [npm-url]: https://npmjs.org/package/@stdlib/math-base-assert-is-nonpositive-integer
282
282
 
283
- [test-image]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/actions/workflows/test.yml/badge.svg?branch=v0.2.1
284
- [test-url]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/actions/workflows/test.yml?query=branch:v0.2.1
283
+ [test-image]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/actions/workflows/test.yml/badge.svg?branch=v0.2.2
284
+ [test-url]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/actions/workflows/test.yml?query=branch:v0.2.2
285
285
 
286
286
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-assert-is-nonpositive-integer/main.svg
287
- [coverage-url]: https://codecov.io/github/stdlib-js/math-base-assert-is-nonpositive-integer?branch=v0.2.1
287
+ [coverage-url]: https://codecov.io/github/stdlib-js/math-base-assert-is-nonpositive-integer?branch=main
288
288
 
289
289
  <!--
290
290
 
@@ -293,8 +293,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
293
293
 
294
294
  -->
295
295
 
296
- [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
297
- [chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
296
+ [chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
297
+ [chat-url]: https://stdlib.zulipchat.com
298
298
 
299
299
  [stdlib]: https://github.com/stdlib-js/stdlib
300
300
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/math-base-assert-is-nonpositive-integer",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Test if a finite double-precision floating-point number is a nonpositive integer.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -16,21 +16,14 @@
16
16
  "main": "./lib",
17
17
  "gypfile": false,
18
18
  "directories": {
19
- "benchmark": "./benchmark",
20
19
  "doc": "./docs",
21
- "example": "./examples",
22
20
  "include": "./include",
23
21
  "lib": "./lib",
24
22
  "src": "./src",
25
- "test": "./test"
23
+ "dist": "./dist"
26
24
  },
27
25
  "types": "./docs/types",
28
- "scripts": {
29
- "test": "make test",
30
- "test-cov": "make test-cov",
31
- "examples": "make examples",
32
- "benchmark": "make benchmark"
33
- },
26
+ "scripts": {},
34
27
  "homepage": "https://stdlib.io",
35
28
  "repository": {
36
29
  "type": "git",
@@ -41,22 +34,9 @@
41
34
  },
42
35
  "dependencies": {
43
36
  "@stdlib/math-base-special-floor": "^0.2.3",
44
- "@stdlib/utils-library-manifest": "^0.2.2"
45
- },
46
- "devDependencies": {
47
- "@stdlib/assert-is-boolean": "^0.2.2",
48
- "@stdlib/boolean-ctor": "^0.2.2",
49
- "@stdlib/constants-float64-ninf": "^0.2.2",
50
- "@stdlib/constants-float64-pinf": "^0.2.2",
51
- "@stdlib/math-base-special-round": "^0.3.0",
52
- "@stdlib/math-base-special-trunc": "^0.2.1",
53
- "@stdlib/random-base-randu": "^0.2.1",
54
- "@stdlib/utils-try-require": "^0.2.2",
55
- "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
56
- "istanbul": "^0.4.1",
57
- "tap-min": "git+https://github.com/Planeshifter/tap-min.git",
58
- "@stdlib/bench-harness": "^0.2.1"
37
+ "@stdlib/utils-library-manifest": "^0.2.3"
59
38
  },
39
+ "devDependencies": {},
60
40
  "engines": {
61
41
  "node": ">=0.10.0",
62
42
  "npm": ">2.7.0"
package/src/addon.c CHANGED
@@ -18,6 +18,7 @@
18
18
 
19
19
  #include "stdlib/math/base/assert/is_nonpositive_integer.h"
20
20
  #include <node_api.h>
21
+ #include <stdbool.h>
21
22
  #include <stdint.h>
22
23
  #include <assert.h>
23
24
 
package/src/main.c CHANGED
@@ -18,6 +18,7 @@
18
18
 
19
19
  #include "stdlib/math/base/assert/is_nonpositive_integer.h"
20
20
  #include "stdlib/math/base/special/floor.h"
21
+ #include <stdbool.h>
21
22
 
22
23
  /**
23
24
  * Tests if a finite double-precision floating-point number is a nonpositive integer.
@@ -32,5 +33,5 @@
32
33
  * // returns false
33
34
  */
34
35
  bool stdlib_base_is_nonpositive_integer( const double x ) {
35
- return ( stdlib_base_floor( x ) == x && x <= 0 );
36
+ return ( stdlib_base_floor( x ) == x && x <= 0 );
36
37
  }