@stdlib/ndarray-base-assert-is-numeric-data-type 0.0.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/NOTICE CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2023 The Stdlib Authors.
1
+ Copyright (c) 2016-2024 The Stdlib Authors.
package/README.md CHANGED
@@ -18,6 +18,17 @@ limitations under the License.
18
18
 
19
19
  -->
20
20
 
21
+
22
+ <details>
23
+ <summary>
24
+ About stdlib...
25
+ </summary>
26
+ <p>We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.</p>
27
+ <p>The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.</p>
28
+ <p>When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.</p>
29
+ <p>To join us in bringing numerical computing to the web, get started by checking us out on <a href="https://github.com/stdlib-js/stdlib">GitHub</a>, and please consider <a href="https://opencollective.com/stdlib">financially supporting stdlib</a>. We greatly appreciate your continued support!</p>
30
+ </details>
31
+
21
32
  # isNumericDataType
22
33
 
23
34
  [![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
@@ -173,7 +184,7 @@ See [LICENSE][stdlib-license].
173
184
 
174
185
  ## Copyright
175
186
 
176
- Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
187
+ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
177
188
 
178
189
  </section>
179
190
 
@@ -186,8 +197,8 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
186
197
  [npm-image]: http://img.shields.io/npm/v/@stdlib/ndarray-base-assert-is-numeric-data-type.svg
187
198
  [npm-url]: https://npmjs.org/package/@stdlib/ndarray-base-assert-is-numeric-data-type
188
199
 
189
- [test-image]: https://github.com/stdlib-js/ndarray-base-assert-is-numeric-data-type/actions/workflows/test.yml/badge.svg?branch=v0.0.1
190
- [test-url]: https://github.com/stdlib-js/ndarray-base-assert-is-numeric-data-type/actions/workflows/test.yml?query=branch:v0.0.1
200
+ [test-image]: https://github.com/stdlib-js/ndarray-base-assert-is-numeric-data-type/actions/workflows/test.yml/badge.svg?branch=v0.2.0
201
+ [test-url]: https://github.com/stdlib-js/ndarray-base-assert-is-numeric-data-type/actions/workflows/test.yml?query=branch:v0.2.0
191
202
 
192
203
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/ndarray-base-assert-is-numeric-data-type/main.svg
193
204
  [coverage-url]: https://codecov.io/github/stdlib-js/ndarray-base-assert-is-numeric-data-type?branch=main
@@ -210,8 +221,11 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
210
221
  [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
211
222
 
212
223
  [deno-url]: https://github.com/stdlib-js/ndarray-base-assert-is-numeric-data-type/tree/deno
224
+ [deno-readme]: https://github.com/stdlib-js/ndarray-base-assert-is-numeric-data-type/blob/deno/README.md
213
225
  [umd-url]: https://github.com/stdlib-js/ndarray-base-assert-is-numeric-data-type/tree/umd
226
+ [umd-readme]: https://github.com/stdlib-js/ndarray-base-assert-is-numeric-data-type/blob/umd/README.md
214
227
  [esm-url]: https://github.com/stdlib-js/ndarray-base-assert-is-numeric-data-type/tree/esm
228
+ [esm-readme]: https://github.com/stdlib-js/ndarray-base-assert-is-numeric-data-type/blob/esm/README.md
215
229
  [branches-url]: https://github.com/stdlib-js/ndarray-base-assert-is-numeric-data-type/blob/main/branches.md
216
230
 
217
231
  [stdlib-license]: https://raw.githubusercontent.com/stdlib-js/ndarray-base-assert-is-numeric-data-type/main/LICENSE
package/SECURITY.md ADDED
@@ -0,0 +1,5 @@
1
+ # Security
2
+
3
+ > Policy for reporting security vulnerabilities.
4
+
5
+ See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security).
@@ -0,0 +1,3 @@
1
+ /// <reference path="../docs/types/index.d.ts" />
2
+ import isNumericDataType from '../docs/types/index';
3
+ export = isNumericDataType;
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";var a=function(t,r){return function(){return r||t((r={exports:{}}).exports,r),r.exports}};var i=a(function(p,e){
2
+ var s=require('@stdlib/array-base-assert-contains/dist').factory,u=require('@stdlib/ndarray-dtypes/dist'),c=s(u("numeric"));e.exports=c
3
+ });var n=i();module.exports=n;
4
+ /** @license Apache-2.0 */
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../lib/main.js", "../lib/index.js"],
4
+ "sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2023 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// MODULES //\n\nvar contains = require( '@stdlib/array-base-assert-contains' ).factory;\nvar dtypes = require( '@stdlib/ndarray-dtypes' );\n\n\n// MAIN //\n\n/**\n* Tests whether an input value is a supported ndarray numeric data type.\n*\n* @name isNumericDataType\n* @type {Function}\n* @param {*} v - value to test\n* @returns {boolean} boolean indicating whether an input value is a supported ndarray numeric data type\n*\n* @example\n* var bool = isNumericDataType( 'binary' );\n* // returns false\n*\n* bool = isNumericDataType( 'float32' );\n* // returns true\n*\n* bool = isNumericDataType( 'float64' );\n* // returns true\n*\n* bool = isNumericDataType( 'generic' );\n* // returns false\n*\n* bool = isNumericDataType( 'int16' );\n* // returns true\n*\n* bool = isNumericDataType( 'int32' );\n* // returns true\n*\n* bool = isNumericDataType( 'int8' );\n* // returns true\n*\n* bool = isNumericDataType( 'uint16' );\n* // returns true\n*\n* bool = isNumericDataType( 'uint32' );\n* // returns true\n*\n* bool = isNumericDataType( 'uint8' );\n* // returns true\n*\n* bool = isNumericDataType( 'uint8c' );\n* // returns true\n*\n* bool = isNumericDataType( 'foo' );\n* // returns false\n*/\nvar isNumericDataType = contains( dtypes( 'numeric' ) );\n\n\n// EXPORTS //\n\nmodule.exports = isNumericDataType;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2023 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* Test whether an input value is a supported ndarray numeric data type.\n*\n* @module @stdlib/ndarray-base-assert-is-numeric-data-type\n*\n* @example\n* var isNumericDataType = require( '@stdlib/ndarray-base-assert-is-numeric-data-type' );\n*\n* var bool = isNumericDataType( 'binary' );\n* // returns false\n*\n* bool = isNumericDataType( 'float32' );\n* // returns true\n*\n* bool = isNumericDataType( 'float64' );\n* // returns true\n*\n* bool = isNumericDataType( 'generic' );\n* // returns false\n*\n* bool = isNumericDataType( 'int16' );\n* // returns true\n*\n* bool = isNumericDataType( 'int32' );\n* // returns true\n*\n* bool = isNumericDataType( 'int8' );\n* // returns true\n*\n* bool = isNumericDataType( 'uint16' );\n* // returns true\n*\n* bool = isNumericDataType( 'uint32' );\n* // returns true\n*\n* bool = isNumericDataType( 'uint8' );\n* // returns true\n*\n* bool = isNumericDataType( 'uint8c' );\n* // returns true\n*\n* bool = isNumericDataType( 'foo' );\n* // returns false\n*/\n\n// MODULES //\n\nvar main = require( './main.js' );\n\n\n// EXPORTS //\n\nmodule.exports = main;\n"],
5
+ "mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAW,QAAS,oCAAqC,EAAE,QAC3DC,EAAS,QAAS,wBAAyB,EAkD3CC,EAAoBF,EAAUC,EAAQ,SAAU,CAAE,EAKtDF,EAAO,QAAUG,ICXjB,IAAIC,EAAO,IAKX,OAAO,QAAUA",
6
+ "names": ["require_main", "__commonJSMin", "exports", "module", "contains", "dtypes", "isNumericDataType", "main"]
7
+ }
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- // TypeScript Version: 2.0
19
+ // TypeScript Version: 4.1
20
20
 
21
21
  /**
22
22
  * Tests whether an input value is a supported ndarray numeric data type.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/ndarray-base-assert-is-numeric-data-type",
3
- "version": "0.0.1",
3
+ "version": "0.2.0",
4
4
  "description": "Test if an input value is a supported ndarray numeric data type.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -37,15 +37,16 @@
37
37
  "url": "https://github.com/stdlib-js/stdlib/issues"
38
38
  },
39
39
  "dependencies": {
40
- "@stdlib/array-base-assert-contains": "^0.0.1",
41
- "@stdlib/ndarray-dtypes": "^0.0.9"
40
+ "@stdlib/array-base-assert-contains": "^0.2.0",
41
+ "@stdlib/ndarray-dtypes": "^0.2.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@stdlib/assert-is-boolean": "^0.0.8",
45
- "@stdlib/bench": "^0.0.12",
44
+ "@stdlib/assert-is-boolean": "^0.2.0",
46
45
  "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
47
46
  "istanbul": "^0.4.1",
48
- "tap-min": "git+https://github.com/Planeshifter/tap-min.git"
47
+ "tap-min": "git+https://github.com/Planeshifter/tap-min.git",
48
+ "@stdlib/bench-harness": "^0.2.0",
49
+ "@stdlib/bench": "^0.3.1"
49
50
  },
50
51
  "engines": {
51
52
  "node": ">=0.10.0",