@stdlib/ndarray-base-dtypes2signatures 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.
- package/README.md +2 -2
- package/dist/index.js +18 -4
- package/package.json +9 -24
package/README.md
CHANGED
|
@@ -234,8 +234,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
234
234
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/ndarray-base-dtypes2signatures.svg
|
|
235
235
|
[npm-url]: https://npmjs.org/package/@stdlib/ndarray-base-dtypes2signatures
|
|
236
236
|
|
|
237
|
-
[test-image]: https://github.com/stdlib-js/ndarray-base-dtypes2signatures/actions/workflows/test.yml/badge.svg?branch=v0.2.
|
|
238
|
-
[test-url]: https://github.com/stdlib-js/ndarray-base-dtypes2signatures/actions/workflows/test.yml?query=branch:v0.2.
|
|
237
|
+
[test-image]: https://github.com/stdlib-js/ndarray-base-dtypes2signatures/actions/workflows/test.yml/badge.svg?branch=v0.2.2
|
|
238
|
+
[test-url]: https://github.com/stdlib-js/ndarray-base-dtypes2signatures/actions/workflows/test.yml?query=branch:v0.2.2
|
|
239
239
|
|
|
240
240
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/ndarray-base-dtypes2signatures/main.svg
|
|
241
241
|
[coverage-url]: https://codecov.io/github/stdlib-js/ndarray-base-dtypes2signatures?branch=main
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
"use strict";var p=function(a,i){return function(){return i||a((i={exports:{}}).exports,i),i.exports}};var f=p(function(E,h){
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";var p=function(a,i){return function(){return i||a((i={exports:{}}).exports,i),i.exports}};var f=p(function(E,h){"use strict";var w=require("@stdlib/assert-is-array-like-object"),m=require("@stdlib/assert-is-nonnegative-integer").isPrimitive,c=require("@stdlib/ndarray-base-dtype-resolve-str"),g=require("@stdlib/string-format");function d(a,i,o){var s,l,r,u,n,v,e,t;if(!w(a))throw new TypeError(g("invalid argument. First argument must be an array-like object. Value: `%s`.",a));if(!m(i))throw new TypeError(g("invalid argument. Second argument must be a nonnegative integer. Value: `%s`.",i));if(!m(o))throw new TypeError(g("invalid argument. Third argument must be a nonnegative integer. Value: `%s`.",o));if(s=a.length,s===0)throw new RangeError("invalid argument. First argument must contain at least one element.");if(n=i+o,s%n!==0)throw new RangeError("invalid arguments. Length of the first argument is incompatible with the second and third arguments.");for(l=[],r=[],v=2*n,t=2*i,e=0;e<=v;e++)e===0?e===t?r.push("() => ("):r.push("("):e===v?e===t?r.push(") => ()"):r.push(")"):e===t?r.push(") => ("):e%2===1?r.push(""):r.push(", ");for(e=0;e<s;e++)u=c(a[e]),u===null&&(u=a[e]),t=e%n,r[2*t+1]=u,t===n-1&&l.push(r.join(""));return l}h.exports=d});var b=f();module.exports=b;
|
|
2
|
+
/**
|
|
3
|
+
* @license Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2020 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-dtypes2signatures",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Transform a list of array argument data types into a list of signatures.",
|
|
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,13 @@
|
|
|
37
30
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
38
31
|
},
|
|
39
32
|
"dependencies": {
|
|
40
|
-
"@stdlib/assert-is-array-like-object": "^0.2.
|
|
41
|
-
"@stdlib/assert-is-nonnegative-integer": "^0.2.
|
|
42
|
-
"@stdlib/ndarray-base-dtype-resolve-str": "^0.2.
|
|
43
|
-
"@stdlib/string-format": "^0.2.
|
|
44
|
-
"@stdlib/
|
|
45
|
-
"@stdlib/error-tools-fmtprodmsg": "^0.1.1"
|
|
46
|
-
},
|
|
47
|
-
"devDependencies": {
|
|
48
|
-
"@stdlib/assert-is-string-array": "^0.1.1",
|
|
49
|
-
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
|
|
50
|
-
"istanbul": "^0.4.1",
|
|
51
|
-
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
|
|
52
|
-
"@stdlib/bench-harness": "^0.2.0",
|
|
53
|
-
"@stdlib/bench": "^0.3.1"
|
|
33
|
+
"@stdlib/assert-is-array-like-object": "^0.2.2",
|
|
34
|
+
"@stdlib/assert-is-nonnegative-integer": "^0.2.2",
|
|
35
|
+
"@stdlib/ndarray-base-dtype-resolve-str": "^0.2.1",
|
|
36
|
+
"@stdlib/string-format": "^0.2.2",
|
|
37
|
+
"@stdlib/error-tools-fmtprodmsg": "^0.2.2"
|
|
54
38
|
},
|
|
39
|
+
"devDependencies": {},
|
|
55
40
|
"engines": {
|
|
56
41
|
"node": ">=0.10.0",
|
|
57
42
|
"npm": ">2.7.0"
|