@stdlib/number-int32-base-to-uint32 0.2.2 → 0.2.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
@@ -148,7 +148,7 @@ See [LICENSE][stdlib-license].
148
148
 
149
149
  ## Copyright
150
150
 
151
- Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
151
+ Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors].
152
152
 
153
153
  </section>
154
154
 
@@ -161,8 +161,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
161
161
  [npm-image]: http://img.shields.io/npm/v/@stdlib/number-int32-base-to-uint32.svg
162
162
  [npm-url]: https://npmjs.org/package/@stdlib/number-int32-base-to-uint32
163
163
 
164
- [test-image]: https://github.com/stdlib-js/number-int32-base-to-uint32/actions/workflows/test.yml/badge.svg?branch=v0.2.2
165
- [test-url]: https://github.com/stdlib-js/number-int32-base-to-uint32/actions/workflows/test.yml?query=branch:v0.2.2
164
+ [test-image]: https://github.com/stdlib-js/number-int32-base-to-uint32/actions/workflows/test.yml/badge.svg?branch=v0.2.3
165
+ [test-url]: https://github.com/stdlib-js/number-int32-base-to-uint32/actions/workflows/test.yml?query=branch:v0.2.3
166
166
 
167
167
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/number-int32-base-to-uint32/main.svg
168
168
  [coverage-url]: https://codecov.io/github/stdlib-js/number-int32-base-to-uint32?branch=main
@@ -174,8 +174,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
174
174
 
175
175
  -->
176
176
 
177
- [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
178
- [chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
177
+ [chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
178
+ [chat-url]: https://stdlib.zulipchat.com
179
179
 
180
180
  [stdlib]: https://github.com/stdlib-js/stdlib
181
181
 
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) 2018 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// MAIN //\n\n/**\n* Converts a signed 32-bit integer to an unsigned 32-bit integer.\n*\n* @param {integer32} x - signed 32-bit integer\n* @returns {uinteger32} unsigned 32-bit integer\n*\n* @example\n* var float64ToInt32 = require( '@stdlib/number-float64-base-to-int32' );\n* var y = int32ToUint32( float64ToInt32( -1.0 ) );\n* // returns 4294967295\n*\n* @example\n* var float64ToInt32 = require( '@stdlib/number-float64-base-to-int32' );\n* var y = int32ToUint32( float64ToInt32( 3 ) );\n* // returns 3\n*/\nfunction int32ToUint32( x ) {\n\t// NOTE: we could also use typed-arrays to achieve the same end.\n\treturn x >>> 0;\n}\n\n\n// EXPORTS //\n\nmodule.exports = int32ToUint32;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 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* Convert a signed 32-bit integer to an unsigned 32-bit integer.\n*\n* @module @stdlib/number-int32-base-to-uint32\n*\n* @example\n* var float64ToInt32 = require( '@stdlib/number-float64-base-to-int32' );\n* var int32ToUint32 = require( '@stdlib/number-int32-base-to-uint32' );\n*\n* var y = int32ToUint32( float64ToInt32( -32 ) );\n* // returns 4294967264\n*\n* y = int32ToUint32( float64ToInt32( 3 ) );\n* // returns 3\n*/\n\n// MODULES //\n\nvar int32ToUint32 = require( './main.js' );\n\n\n// EXPORTS //\n\nmodule.exports = int32ToUint32;\n"],
5
- "mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsCA,SAASC,EAAeC,EAAI,CAE3B,OAAOA,IAAM,CACd,CAKAF,EAAO,QAAUC,ICRjB,IAAIE,EAAgB,IAKpB,OAAO,QAAUA",
4
+ "sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 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// MAIN //\n\n/**\n* Converts a signed 32-bit integer to an unsigned 32-bit integer.\n*\n* @param {integer32} x - signed 32-bit integer\n* @returns {uinteger32} unsigned 32-bit integer\n*\n* @example\n* var float64ToInt32 = require( '@stdlib/number-float64-base-to-int32' );\n*\n* var y = int32ToUint32( float64ToInt32( -1.0 ) );\n* // returns 4294967295\n*\n* @example\n* var float64ToInt32 = require( '@stdlib/number-float64-base-to-int32' );\n*\n* var y = int32ToUint32( float64ToInt32( 3 ) );\n* // returns 3\n*/\nfunction int32ToUint32( x ) {\n\t// NOTE: we could also use typed-arrays to achieve the same end.\n\treturn x >>> 0;\n}\n\n\n// EXPORTS //\n\nmodule.exports = int32ToUint32;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 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* Convert a signed 32-bit integer to an unsigned 32-bit integer.\n*\n* @module @stdlib/number-int32-base-to-uint32\n*\n* @example\n* var float64ToInt32 = require( '@stdlib/number-float64-base-to-int32' );\n* var int32ToUint32 = require( '@stdlib/number-int32-base-to-uint32' );\n*\n* var y = int32ToUint32( float64ToInt32( -32 ) );\n* // returns 4294967264\n*\n* y = int32ToUint32( float64ToInt32( 3 ) );\n* // returns 3\n*/\n\n// MODULES //\n\nvar int32ToUint32 = require( './main.js' );\n\n\n// EXPORTS //\n\nmodule.exports = int32ToUint32;\n"],
5
+ "mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAwCA,SAASC,EAAeC,EAAI,CAE3B,OAAOA,IAAM,CACd,CAKAF,EAAO,QAAUC,ICVjB,IAAIE,EAAgB,IAKpB,OAAO,QAAUA",
6
6
  "names": ["require_main", "__commonJSMin", "exports", "module", "int32ToUint32", "x", "int32ToUint32"]
7
7
  }
package/lib/main.js CHANGED
@@ -28,11 +28,13 @@
28
28
  *
29
29
  * @example
30
30
  * var float64ToInt32 = require( '@stdlib/number-float64-base-to-int32' );
31
+ *
31
32
  * var y = int32ToUint32( float64ToInt32( -1.0 ) );
32
33
  * // returns 4294967295
33
34
  *
34
35
  * @example
35
36
  * var float64ToInt32 = require( '@stdlib/number-float64-base-to-int32' );
37
+ *
36
38
  * var y = int32ToUint32( float64ToInt32( 3 ) );
37
39
  * // returns 3
38
40
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/number-int32-base-to-uint32",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Convert a signed 32-bit integer to an unsigned 32-bit integer.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {