@stdlib/ndarray-base-dtypes2signatures 0.1.0 → 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 +1 -1
- package/README.md +6 -3
- package/SECURITY.md +5 -0
- package/dist/index.js +1 -1
- package/docs/types/index.d.ts +1 -1
- package/package.json +11 -10
- 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
|
@@ -221,7 +221,7 @@ See [LICENSE][stdlib-license].
|
|
|
221
221
|
|
|
222
222
|
## Copyright
|
|
223
223
|
|
|
224
|
-
Copyright © 2016-
|
|
224
|
+
Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
225
225
|
|
|
226
226
|
</section>
|
|
227
227
|
|
|
@@ -234,8 +234,8 @@ Copyright © 2016-2023. 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.
|
|
238
|
-
[test-url]: https://github.com/stdlib-js/ndarray-base-dtypes2signatures/actions/workflows/test.yml?query=branch:v0.
|
|
237
|
+
[test-image]: https://github.com/stdlib-js/ndarray-base-dtypes2signatures/actions/workflows/test.yml/badge.svg?branch=v0.2.0
|
|
238
|
+
[test-url]: https://github.com/stdlib-js/ndarray-base-dtypes2signatures/actions/workflows/test.yml?query=branch:v0.2.0
|
|
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
|
|
@@ -258,8 +258,11 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
258
258
|
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
259
259
|
|
|
260
260
|
[deno-url]: https://github.com/stdlib-js/ndarray-base-dtypes2signatures/tree/deno
|
|
261
|
+
[deno-readme]: https://github.com/stdlib-js/ndarray-base-dtypes2signatures/blob/deno/README.md
|
|
261
262
|
[umd-url]: https://github.com/stdlib-js/ndarray-base-dtypes2signatures/tree/umd
|
|
263
|
+
[umd-readme]: https://github.com/stdlib-js/ndarray-base-dtypes2signatures/blob/umd/README.md
|
|
262
264
|
[esm-url]: https://github.com/stdlib-js/ndarray-base-dtypes2signatures/tree/esm
|
|
265
|
+
[esm-readme]: https://github.com/stdlib-js/ndarray-base-dtypes2signatures/blob/esm/README.md
|
|
263
266
|
[branches-url]: https://github.com/stdlib-js/ndarray-base-dtypes2signatures/blob/main/branches.md
|
|
264
267
|
|
|
265
268
|
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/ndarray-base-dtypes2signatures/main/LICENSE
|
package/SECURITY.md
ADDED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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
|
-
var w=require('@stdlib/assert-is-array-like-object/dist'),m=require('@stdlib/assert-is-nonnegative-integer/dist').isPrimitive,c=require('@stdlib/ndarray-base-dtype-resolve-str/dist'),g=require('@stdlib/error-tools-fmtprodmsg/dist');function d(a,i,o){var s,l,r,u,n,v,e,t;if(!w(a))throw new TypeError(g('0id2O',a));if(!m(i))throw new TypeError(g('0id3X',i));if(!m(o))throw new TypeError(g('0id2m',o));if(s=a.length,s===0)throw new RangeError(
|
|
2
|
+
var w=require('@stdlib/assert-is-array-like-object/dist'),m=require('@stdlib/assert-is-nonnegative-integer/dist').isPrimitive,c=require('@stdlib/ndarray-base-dtype-resolve-str/dist'),g=require('@stdlib/error-tools-fmtprodmsg/dist');function d(a,i,o){var s,l,r,u,n,v,e,t;if(!w(a))throw new TypeError(g('0id2O',a));if(!m(i))throw new TypeError(g('0id3X',i));if(!m(o))throw new TypeError(g('0id2m',o));if(s=a.length,s===0)throw new RangeError(g('0id0a'));if(n=i+o,s%n!==0)throw new RangeError(g('0idD0'));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
|
|
3
3
|
});var b=f();module.exports=b;
|
|
4
4
|
/** @license Apache-2.0 */
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/docs/types/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ import { ArrayLike } from '@stdlib/types/array';
|
|
|
44
44
|
* var sigs = dtypes2signatures( dtypes, 1, 1 );
|
|
45
45
|
* // returns [ '(float64) => (float64)', '(float32) => (float32)' ]
|
|
46
46
|
*/
|
|
47
|
-
declare function dtypes2signatures( dtypes: ArrayLike<any>, nin: number, nout: number ): ArrayLike<string>;
|
|
47
|
+
declare function dtypes2signatures( dtypes: ArrayLike<any>, nin: number, nout: number ): ArrayLike<string>;
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
// EXPORTS //
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/ndarray-base-dtypes2signatures",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
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": {
|
|
@@ -37,19 +37,20 @@
|
|
|
37
37
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@stdlib/assert-is-array-like-object": "^0.
|
|
41
|
-
"@stdlib/assert-is-nonnegative-integer": "^0.
|
|
42
|
-
"@stdlib/ndarray-base-dtype-resolve-str": "^0.
|
|
43
|
-
"@stdlib/string-format": "^0.
|
|
44
|
-
"@stdlib/types": "^0.1
|
|
45
|
-
"@stdlib/error-tools-fmtprodmsg": "^0.1.
|
|
40
|
+
"@stdlib/assert-is-array-like-object": "^0.2.0",
|
|
41
|
+
"@stdlib/assert-is-nonnegative-integer": "^0.2.0",
|
|
42
|
+
"@stdlib/ndarray-base-dtype-resolve-str": "^0.2.0",
|
|
43
|
+
"@stdlib/string-format": "^0.2.0",
|
|
44
|
+
"@stdlib/types": "^0.3.1",
|
|
45
|
+
"@stdlib/error-tools-fmtprodmsg": "^0.1.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@stdlib/assert-is-string-array": "^0.1.
|
|
49
|
-
"@stdlib/bench": "^0.1.0",
|
|
48
|
+
"@stdlib/assert-is-string-array": "^0.1.1",
|
|
50
49
|
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
|
|
51
50
|
"istanbul": "^0.4.1",
|
|
52
|
-
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"
|
|
51
|
+
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
|
|
52
|
+
"@stdlib/bench-harness": "^0.2.0",
|
|
53
|
+
"@stdlib/bench": "^0.3.1"
|
|
53
54
|
},
|
|
54
55
|
"engines": {
|
|
55
56
|
"node": ">=0.10.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
|