@stdlib/ndarray-base-unary-output-dtype 0.2.0 → 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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/dist/index.js +18 -4
  3. package/package.json +16 -36
package/README.md CHANGED
@@ -196,8 +196,8 @@ Copyright © 2016-2024. 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.2.0
200
- [test-url]: https://github.com/stdlib-js/ndarray-base-unary-output-dtype/actions/workflows/test.yml?query=branch:v0.2.0
199
+ [test-image]: https://github.com/stdlib-js/ndarray-base-unary-output-dtype/actions/workflows/test.yml/badge.svg?branch=v0.2.2
200
+ [test-url]: https://github.com/stdlib-js/ndarray-base-unary-output-dtype/actions/workflows/test.yml?query=branch:v0.2.2
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
package/dist/index.js CHANGED
@@ -1,5 +1,19 @@
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(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
- });var D=n();module.exports=D;
4
- /** @license Apache-2.0 */
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){"use strict";var s=require("@stdlib/ndarray-base-assert-is-floating-point-data-type"),u=require("@stdlib/ndarray-base-assert-is-real-floating-point-data-type"),o=require("@stdlib/ndarray-base-assert-is-complex-floating-point-data-type"),p=require("@stdlib/ndarray-base-assert-is-integer-data-type"),d=require("@stdlib/ndarray-base-assert-is-signed-integer-data-type"),l=require("@stdlib/ndarray-base-assert-is-unsigned-integer-data-type"),v=require("@stdlib/ndarray-base-assert-is-real-data-type"),f=require("@stdlib/ndarray-base-assert-is-numeric-data-type"),_=require("@stdlib/ndarray-base-assert-is-data-type"),r=require("@stdlib/ndarray-defaults"),m=require("@stdlib/string-format"),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("not implemented");if(i=T[e],i===void 0){if(_(e))return e;throw new TypeError(m("invalid argument. Second argument must be a supported data type policy. Value: `%s`.",e))}return i[0](t)?t:i[1]}a.exports=y});var D=n();module.exports=D;
2
+ /**
3
+ * @license Apache-2.0
4
+ *
5
+ * Copyright (c) 2023 The Stdlib Authors.
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
5
19
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/ndarray-base-unary-output-dtype",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
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,33 +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.2.0",
41
- "@stdlib/ndarray-base-assert-is-data-type": "^0.2.0",
42
- "@stdlib/ndarray-base-assert-is-floating-point-data-type": "^0.2.0",
43
- "@stdlib/ndarray-base-assert-is-integer-data-type": "^0.2.0",
44
- "@stdlib/ndarray-base-assert-is-numeric-data-type": "^0.2.0",
45
- "@stdlib/ndarray-base-assert-is-real-data-type": "^0.2.0",
46
- "@stdlib/ndarray-base-assert-is-real-floating-point-data-type": "^0.2.0",
47
- "@stdlib/ndarray-base-assert-is-signed-integer-data-type": "^0.2.0",
48
- "@stdlib/ndarray-base-assert-is-unsigned-integer-data-type": "^0.2.0",
49
- "@stdlib/ndarray-defaults": "^0.2.0",
50
- "@stdlib/string-format": "^0.2.0",
51
- "@stdlib/types": "^0.3.1",
52
- "@stdlib/error-tools-fmtprodmsg": "^0.2.0"
53
- },
54
- "devDependencies": {
55
- "@stdlib/array-base-cartesian-product": "^0.2.0",
56
- "@stdlib/console-log-each": "^0.1.0",
57
- "@stdlib/ndarray-dtypes": "^0.2.0",
58
- "@stdlib/utils-map2": "^0.1.0",
59
- "@stdlib/utils-nary-function": "^0.2.0",
60
- "@stdlib/utils-unzip": "^0.2.0",
61
- "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
62
- "istanbul": "^0.4.1",
63
- "tap-min": "git+https://github.com/Planeshifter/tap-min.git",
64
- "@stdlib/bench-harness": "^0.2.0",
65
- "@stdlib/bench": "^0.3.1"
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.2",
36
+ "@stdlib/ndarray-base-assert-is-integer-data-type": "^0.2.2",
37
+ "@stdlib/ndarray-base-assert-is-numeric-data-type": "^0.2.2",
38
+ "@stdlib/ndarray-base-assert-is-real-data-type": "^0.2.2",
39
+ "@stdlib/ndarray-base-assert-is-real-floating-point-data-type": "^0.2.2",
40
+ "@stdlib/ndarray-base-assert-is-signed-integer-data-type": "^0.2.2",
41
+ "@stdlib/ndarray-base-assert-is-unsigned-integer-data-type": "^0.2.2",
42
+ "@stdlib/ndarray-defaults": "^0.3.0",
43
+ "@stdlib/string-format": "^0.2.2",
44
+ "@stdlib/error-tools-fmtprodmsg": "^0.2.2"
66
45
  },
46
+ "devDependencies": {},
67
47
  "engines": {
68
48
  "node": ">=0.10.0",
69
49
  "npm": ">2.7.0"