@stdlib/blas-base-diagonal-type-enum2str 0.1.1 → 0.1.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/NOTICE +1 -1
- package/README.md +5 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/lib/main.js +1 -1
- package/package.json +3 -4
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2026 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -161,7 +161,7 @@ See [LICENSE][stdlib-license].
|
|
|
161
161
|
|
|
162
162
|
## Copyright
|
|
163
163
|
|
|
164
|
-
Copyright © 2016-
|
|
164
|
+
Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors].
|
|
165
165
|
|
|
166
166
|
</section>
|
|
167
167
|
|
|
@@ -174,8 +174,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
174
174
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/blas-base-diagonal-type-enum2str.svg
|
|
175
175
|
[npm-url]: https://npmjs.org/package/@stdlib/blas-base-diagonal-type-enum2str
|
|
176
176
|
|
|
177
|
-
[test-image]: https://github.com/stdlib-js/blas-base-diagonal-type-enum2str/actions/workflows/test.yml/badge.svg?branch=v0.1.
|
|
178
|
-
[test-url]: https://github.com/stdlib-js/blas-base-diagonal-type-enum2str/actions/workflows/test.yml?query=branch:v0.1.
|
|
177
|
+
[test-image]: https://github.com/stdlib-js/blas-base-diagonal-type-enum2str/actions/workflows/test.yml/badge.svg?branch=v0.1.2
|
|
178
|
+
[test-url]: https://github.com/stdlib-js/blas-base-diagonal-type-enum2str/actions/workflows/test.yml?query=branch:v0.1.2
|
|
179
179
|
|
|
180
180
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/blas-base-diagonal-type-enum2str/main.svg
|
|
181
181
|
[coverage-url]: https://codecov.io/github/stdlib-js/blas-base-diagonal-type-enum2str?branch=main
|
|
@@ -187,8 +187,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
187
187
|
|
|
188
188
|
-->
|
|
189
189
|
|
|
190
|
-
[chat-image]: https://img.shields.io/
|
|
191
|
-
[chat-url]: https://
|
|
190
|
+
[chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
|
|
191
|
+
[chat-url]: https://stdlib.zulipchat.com
|
|
192
192
|
|
|
193
193
|
[stdlib]: https://github.com/stdlib-js/stdlib
|
|
194
194
|
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";var u=function(r,e){return function(){return e||r((e={exports:{}}).exports,e),e.exports}};var s=u(function(l,t){
|
|
2
|
-
var n=require('@stdlib/
|
|
2
|
+
var n=require('@stdlib/object-inverse/dist'),a=require('@stdlib/blas-base-diagonal-types/dist').enum,i=n(a(),{duplicates:!1});function v(r){var e=i[r];return typeof e=="string"?e:null}t.exports=v
|
|
3
3
|
});var o=s();module.exports=o;
|
|
4
4
|
/** @license Apache-2.0 */
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../lib/main.js", "../lib/index.js"],
|
|
4
|
-
"sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2024 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// MODULES //\n\nvar objectInverse = require( '@stdlib/
|
|
5
|
-
"mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAgB,QAAS,
|
|
4
|
+
"sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2024 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// MODULES //\n\nvar objectInverse = require( '@stdlib/object-inverse' );\nvar enumeration = require( '@stdlib/blas-base-diagonal-types' ).enum;\n\n\n// VARIABLES //\n\nvar hash = objectInverse( enumeration(), {\n\t'duplicates': false\n});\n\n\n// MAIN //\n\n/**\n* Returns the BLAS diagonal type string associated with a BLAS diagonal type enumeration constant.\n*\n* @param {integer} value - diagonal type enumeration constant\n* @returns {(string|null)} diagonal type string or null\n*\n* @example\n* var str2enum = require( '@stdlib/blas-base-diagonal-type-str2enum' );\n*\n* var v = str2enum( 'unit' );\n* // returns <number>\n*\n* var s = enum2str( v );\n* // returns 'unit'\n*/\nfunction enum2str( value ) {\n\tvar v = hash[ value ];\n\treturn ( typeof v === 'string' ) ? v : null; // note: we include this guard to prevent walking the prototype chain\n}\n\n\n// EXPORTS //\n\nmodule.exports = enum2str;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2024 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* Return the BLAS diagonal type string associated with a BLAS diagonal type enumeration constant.\n*\n* @module @stdlib/blas-base-diagonal-type-enum2str\n*\n* @example\n* var str2enum = require( '@stdlib/blas-base-diagonal-type-str2enum' );\n* var enum2str = require( '@stdlib/blas-base-diagonal-type-enum2str' );\n*\n* var v = str2enum( 'unit' );\n* // returns <number>\n*\n* var s = enum2str( v );\n* // returns 'unit'\n*/\n\n// MODULES //\n\nvar main = require( './main.js' );\n\n\n// EXPORTS //\n\nmodule.exports = main;\n"],
|
|
5
|
+
"mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAgB,QAAS,wBAAyB,EAClDC,EAAc,QAAS,kCAAmC,EAAE,KAK5DC,EAAOF,EAAeC,EAAY,EAAG,CACxC,WAAc,EACf,CAAC,EAoBD,SAASE,EAAUC,EAAQ,CAC1B,IAAIC,EAAIH,EAAME,CAAM,EACpB,OAAS,OAAOC,GAAM,SAAaA,EAAI,IACxC,CAKAN,EAAO,QAAUI,ICpBjB,IAAIG,EAAO,IAKX,OAAO,QAAUA",
|
|
6
6
|
"names": ["require_main", "__commonJSMin", "exports", "module", "objectInverse", "enumeration", "hash", "enum2str", "value", "v", "main"]
|
|
7
7
|
}
|
package/lib/main.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/blas-base-diagonal-type-enum2str",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Return the BLAS diagonal type string associated with a BLAS diagonal type enumeration constant.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@stdlib/blas-base-diagonal-types": "^0.0.
|
|
34
|
-
"@stdlib/
|
|
33
|
+
"@stdlib/blas-base-diagonal-types": "^0.0.3",
|
|
34
|
+
"@stdlib/object-inverse": "^0.1.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {},
|
|
37
37
|
"engines": {
|
|
@@ -64,7 +64,6 @@
|
|
|
64
64
|
"util",
|
|
65
65
|
"enum"
|
|
66
66
|
],
|
|
67
|
-
"__stdlib__": {},
|
|
68
67
|
"funding": {
|
|
69
68
|
"type": "opencollective",
|
|
70
69
|
"url": "https://opencollective.com/stdlib"
|