@stdlib/math-base-napi 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 +9 -3
- package/SECURITY.md +5 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/docs/types/index.d.ts +21 -2
- package/lib/index.js +18 -0
- package/package.json +13 -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
|
@@ -69,6 +69,8 @@ The namespace contains the following packages:
|
|
|
69
69
|
<div class="namespace-toc">
|
|
70
70
|
|
|
71
71
|
- <span class="signature">[`binary( env, info, fcn )`][@stdlib/math/base/napi/binary]</span><span class="delimiter">: </span><span class="description">C APIs for registering a Node-API module exporting interfaces for invoking binary numerical functions.</span>
|
|
72
|
+
- <span class="signature">[`quaternary( env, info, fcn )`][@stdlib/math/base/napi/quaternary]</span><span class="delimiter">: </span><span class="description">C APIs for registering a Node-API module exporting interfaces for invoking quaternary numerical functions.</span>
|
|
73
|
+
- <span class="signature">[`quinary( env, info, fcn )`][@stdlib/math/base/napi/quinary]</span><span class="delimiter">: </span><span class="description">C APIs for registering a Node-API module exporting interfaces for invoking quinary numerical functions.</span>
|
|
72
74
|
- <span class="signature">[`ternary( env, info, fcn )`][@stdlib/math/base/napi/ternary]</span><span class="delimiter">: </span><span class="description">C APIs for registering a Node-API module exporting interfaces for invoking ternary numerical functions.</span>
|
|
73
75
|
- <span class="signature">[`unary( env, info, fcn )`][@stdlib/math/base/napi/unary]</span><span class="delimiter">: </span><span class="description">C APIs for registering a Node-API module exporting interfaces for invoking unary numerical functions.</span>
|
|
74
76
|
|
|
@@ -133,7 +135,7 @@ See [LICENSE][stdlib-license].
|
|
|
133
135
|
|
|
134
136
|
## Copyright
|
|
135
137
|
|
|
136
|
-
Copyright © 2016-
|
|
138
|
+
Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
137
139
|
|
|
138
140
|
</section>
|
|
139
141
|
|
|
@@ -146,8 +148,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
146
148
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/math-base-napi.svg
|
|
147
149
|
[npm-url]: https://npmjs.org/package/@stdlib/math-base-napi
|
|
148
150
|
|
|
149
|
-
[test-image]: https://github.com/stdlib-js/math-base-napi/actions/workflows/test.yml/badge.svg?branch=v0.
|
|
150
|
-
[test-url]: https://github.com/stdlib-js/math-base-napi/actions/workflows/test.yml?query=branch:v0.
|
|
151
|
+
[test-image]: https://github.com/stdlib-js/math-base-napi/actions/workflows/test.yml/badge.svg?branch=v0.2.0
|
|
152
|
+
[test-url]: https://github.com/stdlib-js/math-base-napi/actions/workflows/test.yml?query=branch:v0.2.0
|
|
151
153
|
|
|
152
154
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-napi/main.svg
|
|
153
155
|
[coverage-url]: https://codecov.io/github/stdlib-js/math-base-napi?branch=main
|
|
@@ -172,6 +174,10 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
172
174
|
|
|
173
175
|
[@stdlib/math/base/napi/binary]: https://www.npmjs.com/package/@stdlib/math-base-napi-binary
|
|
174
176
|
|
|
177
|
+
[@stdlib/math/base/napi/quaternary]: https://www.npmjs.com/package/@stdlib/math-base-napi-quaternary
|
|
178
|
+
|
|
179
|
+
[@stdlib/math/base/napi/quinary]: https://www.npmjs.com/package/@stdlib/math-base-napi-quinary
|
|
180
|
+
|
|
175
181
|
[@stdlib/math/base/napi/ternary]: https://www.npmjs.com/package/@stdlib/math-base-napi-ternary
|
|
176
182
|
|
|
177
183
|
[@stdlib/math/base/napi/unary]: https://www.npmjs.com/package/@stdlib/math-base-napi-unary
|
package/SECURITY.md
ADDED
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var e=require('@stdlib/utils-define-read-only-property/dist'),r={};e(r,"binary",require('@stdlib/math-base-napi-binary/dist'));e(r,"ternary",require('@stdlib/math-base-napi-ternary/dist'));e(r,"unary",require('@stdlib/math-base-napi-unary/dist'));module.exports=r;
|
|
1
|
+
"use strict";var e=require('@stdlib/utils-define-read-only-property/dist'),r={};e(r,"binary",require('@stdlib/math-base-napi-binary/dist'));e(r,"quaternary",require('@stdlib/math-base-napi-quaternary/dist'));e(r,"quinary",require('@stdlib/math-base-napi-quinary/dist'));e(r,"ternary",require('@stdlib/math-base-napi-ternary/dist'));e(r,"unary",require('@stdlib/math-base-napi-unary/dist'));module.exports=r;
|
|
2
2
|
/** @license Apache-2.0 */
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../lib/index.js"],
|
|
4
|
-
"sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2021 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* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.\n*/\n\n// MODULES //\n\nvar setReadOnly = require( '@stdlib/utils-define-read-only-property' );\n\n\n// MAIN //\n\n/**\n* Top-level namespace.\n*\n* @namespace ns\n*/\nvar ns = {};\n\n/**\n* @name binary\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/napi/binary}\n*/\nsetReadOnly( ns, 'binary', require( '@stdlib/math-base-napi-binary' ) );\n\n/**\n* @name ternary\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/napi/ternary}\n*/\nsetReadOnly( ns, 'ternary', require( '@stdlib/math-base-napi-ternary' ) );\n\n/**\n* @name unary\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/napi/unary}\n*/\nsetReadOnly( ns, 'unary', require( '@stdlib/math-base-napi-unary' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"],
|
|
5
|
-
"mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,SAAU,QAAS,+BAAgC,CAAE,EAStED,EAAaC,EAAI,UAAW,QAAS,gCAAiC,CAAE,EASxED,EAAaC,EAAI,QAAS,QAAS,8BAA+B,CAAE,EAKpE,OAAO,QAAUA",
|
|
4
|
+
"sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2021 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* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.\n*/\n\n// MODULES //\n\nvar setReadOnly = require( '@stdlib/utils-define-read-only-property' );\n\n\n// MAIN //\n\n/**\n* Top-level namespace.\n*\n* @namespace ns\n*/\nvar ns = {};\n\n/**\n* @name binary\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/napi/binary}\n*/\nsetReadOnly( ns, 'binary', require( '@stdlib/math-base-napi-binary' ) );\n\n/**\n* @name quaternary\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/napi/quaternary}\n*/\nsetReadOnly( ns, 'quaternary', require( '@stdlib/math-base-napi-quaternary' ) );\n\n/**\n* @name quinary\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/napi/quinary}\n*/\nsetReadOnly( ns, 'quinary', require( '@stdlib/math-base-napi-quinary' ) );\n\n/**\n* @name ternary\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/napi/ternary}\n*/\nsetReadOnly( ns, 'ternary', require( '@stdlib/math-base-napi-ternary' ) );\n\n/**\n* @name unary\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/napi/unary}\n*/\nsetReadOnly( ns, 'unary', require( '@stdlib/math-base-napi-unary' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"],
|
|
5
|
+
"mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,SAAU,QAAS,+BAAgC,CAAE,EAStED,EAAaC,EAAI,aAAc,QAAS,mCAAoC,CAAE,EAS9ED,EAAaC,EAAI,UAAW,QAAS,gCAAiC,CAAE,EASxED,EAAaC,EAAI,UAAW,QAAS,gCAAiC,CAAE,EASxED,EAAaC,EAAI,QAAS,QAAS,8BAA+B,CAAE,EAKpE,OAAO,QAAUA",
|
|
6
6
|
"names": ["setReadOnly", "ns"]
|
|
7
7
|
}
|
package/docs/types/index.d.ts
CHANGED
|
@@ -18,10 +18,11 @@
|
|
|
18
18
|
|
|
19
19
|
// TypeScript Version: 4.1
|
|
20
20
|
|
|
21
|
-
/*
|
|
22
|
-
/* tslint:disable:max-file-line-count */
|
|
21
|
+
/* eslint-disable max-lines */
|
|
23
22
|
|
|
24
23
|
import binary = require( '@stdlib/math-base-napi-binary' );
|
|
24
|
+
import quaternary = require( '@stdlib/math-base-napi-quaternary' );
|
|
25
|
+
import quinary = require( '@stdlib/math-base-napi-quinary' );
|
|
25
26
|
import ternary = require( '@stdlib/math-base-napi-ternary' );
|
|
26
27
|
import unary = require( '@stdlib/math-base-napi-unary' );
|
|
27
28
|
|
|
@@ -38,6 +39,24 @@ interface Namespace {
|
|
|
38
39
|
*/
|
|
39
40
|
binary: typeof binary;
|
|
40
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Absolute file path for the directory containing header files for C APIs.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* var dir = ns.quaternary;
|
|
47
|
+
* // returns <string>
|
|
48
|
+
*/
|
|
49
|
+
quaternary: typeof quaternary;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Absolute file path for the directory containing header files for C APIs.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* var dir = ns.quinary;
|
|
56
|
+
* // returns <string>
|
|
57
|
+
*/
|
|
58
|
+
quinary: typeof quinary;
|
|
59
|
+
|
|
41
60
|
/**
|
|
42
61
|
* Absolute file path for the directory containing header files for C APIs.
|
|
43
62
|
*
|
package/lib/index.js
CHANGED
|
@@ -45,6 +45,24 @@ var ns = {};
|
|
|
45
45
|
*/
|
|
46
46
|
setReadOnly( ns, 'binary', require( '@stdlib/math-base-napi-binary' ) );
|
|
47
47
|
|
|
48
|
+
/**
|
|
49
|
+
* @name quaternary
|
|
50
|
+
* @memberof ns
|
|
51
|
+
* @readonly
|
|
52
|
+
* @type {Function}
|
|
53
|
+
* @see {@link module:@stdlib/math/base/napi/quaternary}
|
|
54
|
+
*/
|
|
55
|
+
setReadOnly( ns, 'quaternary', require( '@stdlib/math-base-napi-quaternary' ) );
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @name quinary
|
|
59
|
+
* @memberof ns
|
|
60
|
+
* @readonly
|
|
61
|
+
* @type {Function}
|
|
62
|
+
* @see {@link module:@stdlib/math/base/napi/quinary}
|
|
63
|
+
*/
|
|
64
|
+
setReadOnly( ns, 'quinary', require( '@stdlib/math-base-napi-quinary' ) );
|
|
65
|
+
|
|
48
66
|
/**
|
|
49
67
|
* @name ternary
|
|
50
68
|
* @memberof ns
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/math-base-napi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "C APIs for registering a Node-API module exporting interfaces.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -36,20 +36,23 @@
|
|
|
36
36
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@stdlib/math-base-napi-binary": "^0.0
|
|
40
|
-
"@stdlib/math-base-napi-
|
|
41
|
-
"@stdlib/math-base-napi-
|
|
42
|
-
"@stdlib/
|
|
39
|
+
"@stdlib/math-base-napi-binary": "^0.2.0",
|
|
40
|
+
"@stdlib/math-base-napi-quaternary": "^0.2.0",
|
|
41
|
+
"@stdlib/math-base-napi-quinary": "^0.2.0",
|
|
42
|
+
"@stdlib/math-base-napi-ternary": "^0.2.0",
|
|
43
|
+
"@stdlib/math-base-napi-unary": "^0.2.0",
|
|
44
|
+
"@stdlib/utils-define-read-only-property": "^0.2.0"
|
|
43
45
|
},
|
|
44
46
|
"devDependencies": {
|
|
45
|
-
"@stdlib/assert-is-browser": "^0.1.
|
|
46
|
-
"@stdlib/
|
|
47
|
-
"@stdlib/math-base-assert-is-nan": "^0.1.0",
|
|
47
|
+
"@stdlib/assert-is-browser": "^0.1.1",
|
|
48
|
+
"@stdlib/math-base-assert-is-nan": "^0.1.1",
|
|
48
49
|
"@stdlib/utils-keys": "^0.1.0",
|
|
49
|
-
"@stdlib/utils-try-require": "^0.
|
|
50
|
+
"@stdlib/utils-try-require": "^0.2.0",
|
|
50
51
|
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
|
|
51
52
|
"istanbul": "^0.4.1",
|
|
52
|
-
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"
|
|
53
|
+
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
|
|
54
|
+
"@stdlib/bench-harness": "^0.2.0",
|
|
55
|
+
"@stdlib/bench": "^0.3.1"
|
|
53
56
|
},
|
|
54
57
|
"engines": {
|
|
55
58
|
"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
|