@stdlib/ndarray-base-unary-output-dtype 0.1.0 → 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 CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2023 The Stdlib Authors.
1
+ Copyright (c) 2016-2024 The Stdlib Authors.
package/README.md CHANGED
@@ -183,7 +183,7 @@ See [LICENSE][stdlib-license].
183
183
 
184
184
  ## Copyright
185
185
 
186
- Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
186
+ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
187
187
 
188
188
  </section>
189
189
 
@@ -196,8 +196,8 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
196
196
  [npm-image]: http://img.shields.io/npm/v/@stdlib/ndarray-base-unary-output-dtype.svg
197
197
  [npm-url]: https://npmjs.org/package/@stdlib/ndarray-base-unary-output-dtype
198
198
 
199
- [test-image]: https://github.com/stdlib-js/ndarray-base-unary-output-dtype/actions/workflows/test.yml/badge.svg?branch=v0.1.0
200
- [test-url]: https://github.com/stdlib-js/ndarray-base-unary-output-dtype/actions/workflows/test.yml?query=branch:v0.1.0
199
+ [test-image]: https://github.com/stdlib-js/ndarray-base-unary-output-dtype/actions/workflows/test.yml/badge.svg?branch=v0.2.1
200
+ [test-url]: https://github.com/stdlib-js/ndarray-base-unary-output-dtype/actions/workflows/test.yml?query=branch:v0.2.1
201
201
 
202
202
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/ndarray-base-unary-output-dtype/main.svg
203
203
  [coverage-url]: https://codecov.io/github/stdlib-js/ndarray-base-unary-output-dtype?branch=main
@@ -220,15 +220,18 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
220
220
  [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
221
221
 
222
222
  [deno-url]: https://github.com/stdlib-js/ndarray-base-unary-output-dtype/tree/deno
223
+ [deno-readme]: https://github.com/stdlib-js/ndarray-base-unary-output-dtype/blob/deno/README.md
223
224
  [umd-url]: https://github.com/stdlib-js/ndarray-base-unary-output-dtype/tree/umd
225
+ [umd-readme]: https://github.com/stdlib-js/ndarray-base-unary-output-dtype/blob/umd/README.md
224
226
  [esm-url]: https://github.com/stdlib-js/ndarray-base-unary-output-dtype/tree/esm
227
+ [esm-readme]: https://github.com/stdlib-js/ndarray-base-unary-output-dtype/blob/esm/README.md
225
228
  [branches-url]: https://github.com/stdlib-js/ndarray-base-unary-output-dtype/blob/main/branches.md
226
229
 
227
230
  [stdlib-license]: https://raw.githubusercontent.com/stdlib-js/ndarray-base-unary-output-dtype/main/LICENSE
228
231
 
229
- [@stdlib/ndarray/dtypes]: https://www.npmjs.com/package/@stdlib/stdlib
232
+ [@stdlib/ndarray/dtypes]: https://www.npmjs.com/package/@stdlib/ndarray-dtypes
230
233
 
231
- [@stdlib/ndarray/output-dtype-policies]: https://www.npmjs.com/package/@stdlib/stdlib
234
+ [@stdlib/ndarray/output-dtype-policies]: https://www.npmjs.com/package/@stdlib/ndarray-output-dtype-policies
232
235
 
233
236
  </section>
234
237
 
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).
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";var g=function(t,e){return function(){return e||t((e={exports:{}}).exports,e),e.exports}};var n=g(function(E,a){
2
- var s=require('@stdlib/ndarray-base-assert-is-floating-point-data-type/dist'),u=require('@stdlib/ndarray-base-assert-is-real-floating-point-data-type/dist'),o=require('@stdlib/ndarray-base-assert-is-complex-floating-point-data-type/dist'),p=require('@stdlib/ndarray-base-assert-is-integer-data-type/dist'),d=require('@stdlib/ndarray-base-assert-is-signed-integer-data-type/dist'),l=require('@stdlib/ndarray-base-assert-is-unsigned-integer-data-type/dist'),v=require('@stdlib/ndarray-base-assert-is-real-data-type/dist'),f=require('@stdlib/ndarray-base-assert-is-numeric-data-type/dist'),_=require('@stdlib/ndarray-base-assert-is-data-type/dist'),r=require('@stdlib/ndarray-defaults/dist'),m=require('@stdlib/error-tools-fmtprodmsg/dist'),T={floating_point:[s,r.get("dtypes.floating_point")],real_floating_point:[u,r.get("dtypes.real_floating_point")],complex_floating_point:[o,r.get("dtypes.complex_floating_point")],integer:[p,r.get("dtypes.integer")],signed_integer:[d,r.get("dtypes.signed_integer")],unsigned_integer:[l,r.get("dtypes.unsigned_integer")],real:[v,r.get("dtypes.real")],numeric:[f,r.get("dtypes.numeric")]},q=r.get("dtypes.default");function y(t,e){var i;if(e==="default")return q;if(e==="same"||e==="promoted")return t;if(e==="bool")throw new Error(format('1dR00'));if(i=T[e],i===void 0){if(_(e))return e;throw new TypeError(m('1dRDw',e))}return i[0](t)?t:i[1]}a.exports=y
2
+ var s=require('@stdlib/ndarray-base-assert-is-floating-point-data-type/dist'),u=require('@stdlib/ndarray-base-assert-is-real-floating-point-data-type/dist'),o=require('@stdlib/ndarray-base-assert-is-complex-floating-point-data-type/dist'),p=require('@stdlib/ndarray-base-assert-is-integer-data-type/dist'),d=require('@stdlib/ndarray-base-assert-is-signed-integer-data-type/dist'),l=require('@stdlib/ndarray-base-assert-is-unsigned-integer-data-type/dist'),v=require('@stdlib/ndarray-base-assert-is-real-data-type/dist'),f=require('@stdlib/ndarray-base-assert-is-numeric-data-type/dist'),_=require('@stdlib/ndarray-base-assert-is-data-type/dist'),r=require('@stdlib/ndarray-defaults/dist'),m=require('@stdlib/error-tools-fmtprodmsg/dist'),T={floating_point:[s,r.get("dtypes.floating_point")],real_floating_point:[u,r.get("dtypes.real_floating_point")],complex_floating_point:[o,r.get("dtypes.complex_floating_point")],integer:[p,r.get("dtypes.integer")],signed_integer:[d,r.get("dtypes.signed_integer")],unsigned_integer:[l,r.get("dtypes.unsigned_integer")],real:[v,r.get("dtypes.real")],numeric:[f,r.get("dtypes.numeric")]},q=r.get("dtypes.default");function y(t,e){var i;if(e==="default")return q;if(e==="same"||e==="promoted")return t;if(e==="bool")throw new Error(m('1dR00'));if(i=T[e],i===void 0){if(_(e))return e;throw new TypeError(m('1dRDw',e))}return i[0](t)?t:i[1]}a.exports=y
3
3
  });var D=n();module.exports=D;
4
4
  /** @license Apache-2.0 */
5
5
  //# sourceMappingURL=index.js.map
@@ -33,7 +33,7 @@ import { DataType, OutputPolicy } from '@stdlib/types/ndarray';
33
33
  * var dt = outputDataType( 'float64', 'complex_floating_point' );
34
34
  * // returns <string>
35
35
  */
36
- declare function outputDataType( dtype: DataType, policy: OutputPolicy | DataType ): DataType; // tslint-disable-line max-line-length
36
+ declare function outputDataType( dtype: DataType, policy: OutputPolicy | DataType ): DataType;
37
37
 
38
38
 
39
39
  // EXPORTS //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/ndarray-base-unary-output-dtype",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Resolve the output ndarray data type for a unary function.",
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
- "test": "./test"
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,32 +30,20 @@
37
30
  "url": "https://github.com/stdlib-js/stdlib/issues"
38
31
  },
39
32
  "dependencies": {
40
- "@stdlib/ndarray-base-assert-is-complex-floating-point-data-type": "^0.1.0",
41
- "@stdlib/ndarray-base-assert-is-data-type": "^0.1.0",
42
- "@stdlib/ndarray-base-assert-is-floating-point-data-type": "^0.1.0",
43
- "@stdlib/ndarray-base-assert-is-integer-data-type": "^0.1.0",
44
- "@stdlib/ndarray-base-assert-is-numeric-data-type": "^0.1.0",
45
- "@stdlib/ndarray-base-assert-is-real-data-type": "^0.1.0",
46
- "@stdlib/ndarray-base-assert-is-real-floating-point-data-type": "^0.1.0",
47
- "@stdlib/ndarray-base-assert-is-signed-integer-data-type": "^0.1.0",
48
- "@stdlib/ndarray-base-assert-is-unsigned-integer-data-type": "^0.1.0",
49
- "@stdlib/ndarray-defaults": "^0.1.0",
50
- "@stdlib/string-format": "^0.1.0",
51
- "@stdlib/types": "^0.1.0",
52
- "@stdlib/error-tools-fmtprodmsg": "^0.1.0"
53
- },
54
- "devDependencies": {
55
- "@stdlib/array-base-cartesian-product": "^0.1.0",
56
- "@stdlib/bench": "^0.1.0",
57
- "@stdlib/console-log-each": "^0.0.2",
58
- "@stdlib/ndarray-dtypes": "^0.1.0",
59
- "@stdlib/utils-map2": "^0.0.1",
60
- "@stdlib/utils-nary-function": "^0.1.0",
61
- "@stdlib/utils-unzip": "^0.1.0",
62
- "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
63
- "istanbul": "^0.4.1",
64
- "tap-min": "git+https://github.com/Planeshifter/tap-min.git"
33
+ "@stdlib/ndarray-base-assert-is-complex-floating-point-data-type": "^0.2.1",
34
+ "@stdlib/ndarray-base-assert-is-data-type": "^0.2.1",
35
+ "@stdlib/ndarray-base-assert-is-floating-point-data-type": "^0.2.1",
36
+ "@stdlib/ndarray-base-assert-is-integer-data-type": "^0.2.1",
37
+ "@stdlib/ndarray-base-assert-is-numeric-data-type": "^0.2.1",
38
+ "@stdlib/ndarray-base-assert-is-real-data-type": "^0.2.1",
39
+ "@stdlib/ndarray-base-assert-is-real-floating-point-data-type": "^0.2.1",
40
+ "@stdlib/ndarray-base-assert-is-signed-integer-data-type": "^0.2.1",
41
+ "@stdlib/ndarray-base-assert-is-unsigned-integer-data-type": "^0.2.1",
42
+ "@stdlib/ndarray-defaults": "^0.2.1",
43
+ "@stdlib/string-format": "^0.2.1",
44
+ "@stdlib/error-tools-fmtprodmsg": "^0.2.1"
65
45
  },
46
+ "devDependencies": {},
66
47
  "engines": {
67
48
  "node": ">=0.10.0",
68
49
  "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