@stdlib/blas-base-layout-enum2str 0.0.1 → 0.0.3

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 CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2024 The Stdlib Authors.
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-2024. The Stdlib [Authors][stdlib-authors].
164
+ Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors].
165
165
 
166
166
  </section>
167
167
 
@@ -174,8 +174,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
174
174
  [npm-image]: http://img.shields.io/npm/v/@stdlib/blas-base-layout-enum2str.svg
175
175
  [npm-url]: https://npmjs.org/package/@stdlib/blas-base-layout-enum2str
176
176
 
177
- [test-image]: https://github.com/stdlib-js/blas-base-layout-enum2str/actions/workflows/test.yml/badge.svg?branch=v0.0.1
178
- [test-url]: https://github.com/stdlib-js/blas-base-layout-enum2str/actions/workflows/test.yml?query=branch:v0.0.1
177
+ [test-image]: https://github.com/stdlib-js/blas-base-layout-enum2str/actions/workflows/test.yml/badge.svg?branch=v0.0.3
178
+ [test-url]: https://github.com/stdlib-js/blas-base-layout-enum2str/actions/workflows/test.yml?query=branch:v0.0.3
179
179
 
180
180
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/blas-base-layout-enum2str/main.svg
181
181
  [coverage-url]: https://codecov.io/github/stdlib-js/blas-base-layout-enum2str?branch=main
@@ -187,8 +187,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
187
187
 
188
188
  -->
189
189
 
190
- [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
191
- [chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
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/utils-object-inverse/dist'),a=require('@stdlib/blas-base-layouts/dist').enum,i=n(a(),{duplicates:!1});function v(r){var e=i[r];return typeof e=="string"?e:null}t.exports=v
2
+ var n=require('@stdlib/object-inverse/dist'),a=require('@stdlib/blas-base-layouts/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/utils-object-inverse' );\nvar enumeration = require( '@stdlib/blas-base-layouts' ).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 memory layout string associated with a BLAS memory layout enumeration constant.\n*\n* @param {integer} layout - layout enumeration constant\n* @returns {(string|null)} layout string or null\n*\n* @example\n* var str2enum = require( '@stdlib/blas-base-layout-str2enum' );\n*\n* var v = str2enum( 'row-major' );\n* // returns <number>\n*\n* var s = enum2str( v );\n* // returns 'row-major'\n*/\nfunction enum2str( layout ) {\n\tvar v = hash[ layout ];\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 memory layout string associated with a BLAS memory layout enumeration constant.\n*\n* @module @stdlib/blas-base-layout-enum2str\n*\n* @example\n* var str2enum = require( '@stdlib/blas-base-layout-str2enum' );\n* var enum2str = require( '@stdlib/blas-base-layout-enum2str' );\n*\n* var v = str2enum( 'row-major' );\n* // returns <number>\n*\n* var s = enum2str( v );\n* // returns 'row-major'\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,8BAA+B,EACxDC,EAAc,QAAS,2BAA4B,EAAE,KAKrDC,EAAOF,EAAeC,EAAY,EAAG,CACxC,WAAc,EACf,CAAC,EAoBD,SAASE,EAAUC,EAAS,CAC3B,IAAIC,EAAIH,EAAME,CAAO,EACrB,OAAS,OAAOC,GAAM,SAAaA,EAAI,IACxC,CAKAN,EAAO,QAAUI,ICpBjB,IAAIG,EAAO,IAKX,OAAO,QAAUA",
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-layouts' ).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 memory layout string associated with a BLAS memory layout enumeration constant.\n*\n* @param {integer} layout - layout enumeration constant\n* @returns {(string|null)} layout string or null\n*\n* @example\n* var str2enum = require( '@stdlib/blas-base-layout-str2enum' );\n*\n* var v = str2enum( 'row-major' );\n* // returns <number>\n*\n* var s = enum2str( v );\n* // returns 'row-major'\n*/\nfunction enum2str( layout ) {\n\tvar v = hash[ layout ];\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 memory layout string associated with a BLAS memory layout enumeration constant.\n*\n* @module @stdlib/blas-base-layout-enum2str\n*\n* @example\n* var str2enum = require( '@stdlib/blas-base-layout-str2enum' );\n* var enum2str = require( '@stdlib/blas-base-layout-enum2str' );\n*\n* var v = str2enum( 'row-major' );\n* // returns <number>\n*\n* var s = enum2str( v );\n* // returns 'row-major'\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,2BAA4B,EAAE,KAKrDC,EAAOF,EAAeC,EAAY,EAAG,CACxC,WAAc,EACf,CAAC,EAoBD,SAASE,EAAUC,EAAS,CAC3B,IAAIC,EAAIH,EAAME,CAAO,EACrB,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", "layout", "v", "main"]
7
7
  }
package/lib/main.js CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  // MODULES //
22
22
 
23
- var objectInverse = require( '@stdlib/utils-object-inverse' );
23
+ var objectInverse = require( '@stdlib/object-inverse' );
24
24
  var enumeration = require( '@stdlib/blas-base-layouts' ).enum;
25
25
 
26
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/blas-base-layout-enum2str",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Return the BLAS memory layout string associated with a BLAS memory layout 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-layouts": "github:stdlib-js/blas-base-layouts#main",
34
- "@stdlib/utils-object-inverse": "^0.2.1"
33
+ "@stdlib/blas-base-layouts": "^0.0.3",
34
+ "@stdlib/object-inverse": "^0.1.1"
35
35
  },
36
36
  "devDependencies": {},
37
37
  "engines": {
@@ -65,7 +65,6 @@
65
65
  "util",
66
66
  "enum"
67
67
  ],
68
- "__stdlib__": {},
69
68
  "funding": {
70
69
  "type": "opencollective",
71
70
  "url": "https://opencollective.com/stdlib"