@stdlib/assert-is-bigint 0.1.1 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +1 -1
- package/README.md +9 -3
- package/SECURITY.md +5 -0
- package/docs/types/index.d.ts +12 -12
- package/package.json +8 -24
- package/CITATION.cff +0 -30
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2024 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -58,6 +58,7 @@ var isBigInt = require( '@stdlib/assert-is-bigint' );
|
|
|
58
58
|
Tests if a value is a [`BigInt`][mdn-bigint].
|
|
59
59
|
|
|
60
60
|
```javascript
|
|
61
|
+
var Object = require( '@stdlib/object-ctor' );
|
|
61
62
|
var BigInt = require( '@stdlib/bigint-ctor' );
|
|
62
63
|
|
|
63
64
|
var bool = isBigInt( BigInt( '1' ) );
|
|
@@ -72,6 +73,7 @@ bool = isBigInt( Object( BigInt( '1' ) ) );
|
|
|
72
73
|
Tests if a `value` is a primitive [`BigInt`][mdn-bigint].
|
|
73
74
|
|
|
74
75
|
```javascript
|
|
76
|
+
var Object = require( '@stdlib/object-ctor' );
|
|
75
77
|
var BigInt = require( '@stdlib/bigint-ctor' );
|
|
76
78
|
|
|
77
79
|
var bool = isBigInt.isPrimitive( BigInt( '1' ) );
|
|
@@ -86,6 +88,7 @@ bool = isBigInt.isPrimitive( Object( BigInt( '1' ) ) );
|
|
|
86
88
|
Tests if a `value` is a [`BigInt`][mdn-bigint] object.
|
|
87
89
|
|
|
88
90
|
```javascript
|
|
91
|
+
var Object = require( '@stdlib/object-ctor' );
|
|
89
92
|
var BigInt = require( '@stdlib/bigint-ctor' );
|
|
90
93
|
|
|
91
94
|
var bool = isBigInt.isObject( BigInt( '1' ) );
|
|
@@ -182,7 +185,7 @@ See [LICENSE][stdlib-license].
|
|
|
182
185
|
|
|
183
186
|
## Copyright
|
|
184
187
|
|
|
185
|
-
Copyright © 2016-
|
|
188
|
+
Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
186
189
|
|
|
187
190
|
</section>
|
|
188
191
|
|
|
@@ -195,8 +198,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
195
198
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/assert-is-bigint.svg
|
|
196
199
|
[npm-url]: https://npmjs.org/package/@stdlib/assert-is-bigint
|
|
197
200
|
|
|
198
|
-
[test-image]: https://github.com/stdlib-js/assert-is-bigint/actions/workflows/test.yml/badge.svg?branch=v0.
|
|
199
|
-
[test-url]: https://github.com/stdlib-js/assert-is-bigint/actions/workflows/test.yml?query=branch:v0.
|
|
201
|
+
[test-image]: https://github.com/stdlib-js/assert-is-bigint/actions/workflows/test.yml/badge.svg?branch=v0.2.1
|
|
202
|
+
[test-url]: https://github.com/stdlib-js/assert-is-bigint/actions/workflows/test.yml?query=branch:v0.2.1
|
|
200
203
|
|
|
201
204
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/assert-is-bigint/main.svg
|
|
202
205
|
[coverage-url]: https://codecov.io/github/stdlib-js/assert-is-bigint?branch=main
|
|
@@ -219,8 +222,11 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
219
222
|
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
220
223
|
|
|
221
224
|
[deno-url]: https://github.com/stdlib-js/assert-is-bigint/tree/deno
|
|
225
|
+
[deno-readme]: https://github.com/stdlib-js/assert-is-bigint/blob/deno/README.md
|
|
222
226
|
[umd-url]: https://github.com/stdlib-js/assert-is-bigint/tree/umd
|
|
227
|
+
[umd-readme]: https://github.com/stdlib-js/assert-is-bigint/blob/umd/README.md
|
|
223
228
|
[esm-url]: https://github.com/stdlib-js/assert-is-bigint/tree/esm
|
|
229
|
+
[esm-readme]: https://github.com/stdlib-js/assert-is-bigint/blob/esm/README.md
|
|
224
230
|
[branches-url]: https://github.com/stdlib-js/assert-is-bigint/blob/main/branches.md
|
|
225
231
|
|
|
226
232
|
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/assert-is-bigint/main/LICENSE
|
package/SECURITY.md
ADDED
package/docs/types/index.d.ts
CHANGED
|
@@ -29,13 +29,13 @@ interface IsBigInt {
|
|
|
29
29
|
* @returns boolean indicating whether value is a BigInt
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
|
-
* var BigInt = require(
|
|
32
|
+
* var BigInt = require( '@stdlib/bigint-ctor' );
|
|
33
33
|
*
|
|
34
34
|
* var bool = isBigInt( BigInt( '1' ) );
|
|
35
35
|
* // returns true
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
|
-
* var BigInt = require(
|
|
38
|
+
* var BigInt = require( '@stdlib/bigint-ctor' );
|
|
39
39
|
*
|
|
40
40
|
* var bool = isBigInt( Object( BigInt( '1' ) ) );
|
|
41
41
|
* // returns true
|
|
@@ -53,13 +53,13 @@ interface IsBigInt {
|
|
|
53
53
|
* @returns boolean indicating if a value is a BigInt primitive
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
|
-
* var BigInt = require(
|
|
56
|
+
* var BigInt = require( '@stdlib/bigint-ctor' );
|
|
57
57
|
*
|
|
58
58
|
* var bool = isBigInt.isPrimitive( BigInt( '1' ) );
|
|
59
59
|
* // returns true
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
|
-
* var BigInt = require(
|
|
62
|
+
* var BigInt = require( '@stdlib/bigint-ctor' );
|
|
63
63
|
*
|
|
64
64
|
* var bool = isBigInt.isPrimitive( Object( BigInt( '1' ) ) );
|
|
65
65
|
* // returns false
|
|
@@ -77,13 +77,13 @@ interface IsBigInt {
|
|
|
77
77
|
* @returns boolean indicating if a value is a BigInt object
|
|
78
78
|
*
|
|
79
79
|
* @example
|
|
80
|
-
* var BigInt = require(
|
|
80
|
+
* var BigInt = require( '@stdlib/bigint-ctor' );
|
|
81
81
|
*
|
|
82
82
|
* var bool = isBigInt.isObject( BigInt( '1' ) );
|
|
83
83
|
* // returns false
|
|
84
84
|
*
|
|
85
85
|
* @example
|
|
86
|
-
* var BigInt = require(
|
|
86
|
+
* var BigInt = require( '@stdlib/bigint-ctor' );
|
|
87
87
|
*
|
|
88
88
|
* var bool = isBigInt.isObject( Object( BigInt( '1' ) ) );
|
|
89
89
|
* // returns true
|
|
@@ -102,37 +102,37 @@ interface IsBigInt {
|
|
|
102
102
|
* @returns boolean indicating whether value is a BigInt
|
|
103
103
|
*
|
|
104
104
|
* @example
|
|
105
|
-
* var BigInt = require(
|
|
105
|
+
* var BigInt = require( '@stdlib/bigint-ctor' );
|
|
106
106
|
*
|
|
107
107
|
* var bool = isBigInt.isPrimitive( BigInt( '1' ) );
|
|
108
108
|
* // returns true
|
|
109
109
|
*
|
|
110
110
|
* @example
|
|
111
|
-
* var BigInt = require(
|
|
111
|
+
* var BigInt = require( '@stdlib/bigint-ctor' );
|
|
112
112
|
*
|
|
113
113
|
* var bool = isBigInt.isPrimitive( Object( BigInt( '1' ) ) );
|
|
114
114
|
* // returns false
|
|
115
115
|
*
|
|
116
116
|
* @example
|
|
117
|
-
* var BigInt = require(
|
|
117
|
+
* var BigInt = require( '@stdlib/bigint-ctor' );
|
|
118
118
|
*
|
|
119
119
|
* var bool = isBigInt.isPrimitive( BigInt( '1' ) );
|
|
120
120
|
* // returns true
|
|
121
121
|
*
|
|
122
122
|
* @example
|
|
123
|
-
* var BigInt = require(
|
|
123
|
+
* var BigInt = require( '@stdlib/bigint-ctor' );
|
|
124
124
|
*
|
|
125
125
|
* var bool = isBigInt.isPrimitive( Object( BigInt( '1' ) ) );
|
|
126
126
|
* // returns false
|
|
127
127
|
*
|
|
128
128
|
* @example
|
|
129
|
-
* var BigInt = require(
|
|
129
|
+
* var BigInt = require( '@stdlib/bigint-ctor' );
|
|
130
130
|
*
|
|
131
131
|
* var bool = isBigInt.isObject( BigInt( '1' ) );
|
|
132
132
|
* // returns false
|
|
133
133
|
*
|
|
134
134
|
* @example
|
|
135
|
-
* var BigInt = require(
|
|
135
|
+
* var BigInt = require( '@stdlib/bigint-ctor' );
|
|
136
136
|
*
|
|
137
137
|
* var bool = isBigInt.isObject( Object( BigInt( '1' ) ) );
|
|
138
138
|
* // returns true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/assert-is-bigint",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Test if a value is a BigInt.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -15,19 +15,12 @@
|
|
|
15
15
|
],
|
|
16
16
|
"main": "./lib",
|
|
17
17
|
"directories": {
|
|
18
|
-
"benchmark": "./benchmark",
|
|
19
18
|
"doc": "./docs",
|
|
20
|
-
"example": "./examples",
|
|
21
19
|
"lib": "./lib",
|
|
22
|
-
"
|
|
20
|
+
"dist": "./dist"
|
|
23
21
|
},
|
|
24
22
|
"types": "./docs/types",
|
|
25
|
-
"scripts": {
|
|
26
|
-
"test": "make test",
|
|
27
|
-
"test-cov": "make test-cov",
|
|
28
|
-
"examples": "make examples",
|
|
29
|
-
"benchmark": "make benchmark"
|
|
30
|
-
},
|
|
23
|
+
"scripts": {},
|
|
31
24
|
"homepage": "https://stdlib.io",
|
|
32
25
|
"repository": {
|
|
33
26
|
"type": "git",
|
|
@@ -37,21 +30,12 @@
|
|
|
37
30
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
38
31
|
},
|
|
39
32
|
"dependencies": {
|
|
40
|
-
"@stdlib/assert-has-bigint-support": "^0.
|
|
41
|
-
"@stdlib/utils-constant-function": "^0.
|
|
42
|
-
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.
|
|
43
|
-
"@stdlib/utils-native-class": "^0.
|
|
44
|
-
},
|
|
45
|
-
"devDependencies": {
|
|
46
|
-
"@stdlib/assert-is-boolean": "^0.1.1",
|
|
47
|
-
"@stdlib/bench": "^0.1.0",
|
|
48
|
-
"@stdlib/bigint-ctor": "^0.1.1",
|
|
49
|
-
"@stdlib/object-ctor": "^0.1.1",
|
|
50
|
-
"proxyquire": "^2.0.0",
|
|
51
|
-
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
|
|
52
|
-
"istanbul": "^0.4.1",
|
|
53
|
-
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"
|
|
33
|
+
"@stdlib/assert-has-bigint-support": "^0.2.1",
|
|
34
|
+
"@stdlib/utils-constant-function": "^0.2.1",
|
|
35
|
+
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.1",
|
|
36
|
+
"@stdlib/utils-native-class": "^0.2.1"
|
|
54
37
|
},
|
|
38
|
+
"devDependencies": {},
|
|
55
39
|
"engines": {
|
|
56
40
|
"node": ">=0.10.0",
|
|
57
41
|
"npm": ">2.7.0"
|
package/CITATION.cff
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
cff-version: 1.2.0
|
|
2
|
-
title: stdlib
|
|
3
|
-
message: >-
|
|
4
|
-
If you use this software, please cite it using the
|
|
5
|
-
metadata from this file.
|
|
6
|
-
|
|
7
|
-
type: software
|
|
8
|
-
|
|
9
|
-
authors:
|
|
10
|
-
- name: The Stdlib Authors
|
|
11
|
-
url: https://github.com/stdlib-js/stdlib/graphs/contributors
|
|
12
|
-
|
|
13
|
-
repository-code: https://github.com/stdlib-js/stdlib
|
|
14
|
-
url: https://stdlib.io
|
|
15
|
-
|
|
16
|
-
abstract: |
|
|
17
|
-
Standard library for JavaScript and Node.js.
|
|
18
|
-
|
|
19
|
-
keywords:
|
|
20
|
-
- JavaScript
|
|
21
|
-
- Node.js
|
|
22
|
-
- TypeScript
|
|
23
|
-
- standard library
|
|
24
|
-
- scientific computing
|
|
25
|
-
- numerical computing
|
|
26
|
-
- statistical computing
|
|
27
|
-
|
|
28
|
-
license: Apache-2.0 AND BSL-1.0
|
|
29
|
-
|
|
30
|
-
date-released: 2016
|