@stdlib/assert-is-same-complex64 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
@@ -152,7 +152,7 @@ See [LICENSE][stdlib-license].
152
152
 
153
153
  ## Copyright
154
154
 
155
- Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
155
+ Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors].
156
156
 
157
157
  </section>
158
158
 
@@ -165,8 +165,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
165
165
  [npm-image]: http://img.shields.io/npm/v/@stdlib/assert-is-same-complex64.svg
166
166
  [npm-url]: https://npmjs.org/package/@stdlib/assert-is-same-complex64
167
167
 
168
- [test-image]: https://github.com/stdlib-js/assert-is-same-complex64/actions/workflows/test.yml/badge.svg?branch=v0.2.2
169
- [test-url]: https://github.com/stdlib-js/assert-is-same-complex64/actions/workflows/test.yml?query=branch:v0.2.2
168
+ [test-image]: https://github.com/stdlib-js/assert-is-same-complex64/actions/workflows/test.yml/badge.svg?branch=v0.2.3
169
+ [test-url]: https://github.com/stdlib-js/assert-is-same-complex64/actions/workflows/test.yml?query=branch:v0.2.3
170
170
 
171
171
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/assert-is-same-complex64/main.svg
172
172
  [coverage-url]: https://codecov.io/github/stdlib-js/assert-is-same-complex64?branch=main
@@ -178,8 +178,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
178
178
 
179
179
  -->
180
180
 
181
- [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
182
- [chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
181
+ [chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
182
+ [chat-url]: https://stdlib.zulipchat.com
183
183
 
184
184
  [stdlib]: https://github.com/stdlib-js/stdlib
185
185
 
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";var u=function(r,e){return function(){return e||r((e={exports:{}}).exports,e),e.exports}};var t=u(function(f,s){
2
- var i=require('@stdlib/assert-is-complex64/dist'),a=require('@stdlib/complex-float32-base-assert-is-same-value/dist');function m(r,e){return i(r)&&i(e)?a(r,e):!1}s.exports=m
3
- });var n=t();module.exports=n;
1
+ "use strict";var u=function(r,e){return function(){return e||r((e={exports:{}}).exports,e),e.exports}};var t=u(function(p,s){
2
+ var i=require('@stdlib/assert-is-complex64/dist'),a=require('@stdlib/complex-float32-base-assert-is-same-value/dist');function m(r,e){return i(r)&&i(e)&&a(r,e)}s.exports=m
3
+ });var o=t();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 isComplex64 = require( '@stdlib/assert-is-complex64' );\nvar isSameValuef = require( '@stdlib/complex-float32-base-assert-is-same-value' );\n\n\n// MAIN //\n\n/**\n* Tests if two arguments are both single-precision complex floating-point numbers and have the same value.\n*\n* @param {*} v1 - first value\n* @param {*} v2 - second value\n* @returns {boolean} boolean result\n*\n* @example\n* var Complex64 = require( '@stdlib/complex-float32-ctor' );\n*\n* var x = new Complex64( 1.0, 2.0 );\n* var y = new Complex64( 1.0, 2.0 );\n*\n* var out = isSameComplex64( x, y );\n* // returns true\n*\n* @example\n* var Complex64 = require( '@stdlib/complex-float32-ctor' );\n*\n* var x = new Complex64( 1.0, 2.0 );\n* var y = new Complex64( -1.0, -2.0 );\n*\n* var out = isSameComplex64( x, y );\n* // returns false\n*/\nfunction isSameComplex64( v1, v2 ) {\n\tif ( isComplex64( v1 ) && isComplex64( v2 ) ) {\n\t\treturn isSameValuef( v1, v2 );\n\t}\n\treturn false;\n}\n\n\n// EXPORTS //\n\nmodule.exports = isSameComplex64;\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* Test if two arguments are both single-precision complex floating-point numbers and have the same value.\n*\n* @module @stdlib/assert-is-same-complex64\n*\n* @example\n* var Complex64 = require( '@stdlib/complex-float32-ctor' );\n* var isSameComplex64 = require( '@stdlib/assert-is-same-complex64' );\n*\n* var x = new Complex64( 1.0, 2.0 );\n* var y = new Complex64( 1.0, 2.0 );\n*\n* var out = isSameComplex64( x, y );\n* // returns true\n*\n* @example\n* var Complex64 = require( '@stdlib/complex-float32-ctor' );\n* var isSameComplex64 = require( '@stdlib/assert-is-same-complex64' );\n*\n* var x = new Complex64( 1.0, 2.0 );\n* var y = new Complex64( -1.0, -2.0 );\n*\n* var out = isSameComplex64( x, y );\n* // returns false\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,EAAc,QAAS,6BAA8B,EACrDC,EAAe,QAAS,mDAAoD,EA8BhF,SAASC,EAAiBC,EAAIC,EAAK,CAClC,OAAKJ,EAAaG,CAAG,GAAKH,EAAaI,CAAG,EAClCH,EAAcE,EAAIC,CAAG,EAEtB,EACR,CAKAL,EAAO,QAAUG,ICfjB,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 isComplex64 = require( '@stdlib/assert-is-complex64' );\nvar isSameValuef = require( '@stdlib/complex-float32-base-assert-is-same-value' );\n\n\n// MAIN //\n\n/**\n* Tests if two arguments are both single-precision complex floating-point numbers and have the same value.\n*\n* @param {*} v1 - first value\n* @param {*} v2 - second value\n* @returns {boolean} boolean result\n*\n* @example\n* var Complex64 = require( '@stdlib/complex-float32-ctor' );\n*\n* var x = new Complex64( 1.0, 2.0 );\n* var y = new Complex64( 1.0, 2.0 );\n*\n* var out = isSameComplex64( x, y );\n* // returns true\n*\n* @example\n* var Complex64 = require( '@stdlib/complex-float32-ctor' );\n*\n* var x = new Complex64( 1.0, 2.0 );\n* var y = new Complex64( -1.0, -2.0 );\n*\n* var out = isSameComplex64( x, y );\n* // returns false\n*/\nfunction isSameComplex64( v1, v2 ) {\n\treturn ( isComplex64( v1 ) && isComplex64( v2 ) && isSameValuef( v1, v2 ) );\n}\n\n\n// EXPORTS //\n\nmodule.exports = isSameComplex64;\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* Test if two arguments are both single-precision complex floating-point numbers and have the same value.\n*\n* @module @stdlib/assert-is-same-complex64\n*\n* @example\n* var Complex64 = require( '@stdlib/complex-float32-ctor' );\n* var isSameComplex64 = require( '@stdlib/assert-is-same-complex64' );\n*\n* var x = new Complex64( 1.0, 2.0 );\n* var y = new Complex64( 1.0, 2.0 );\n*\n* var out = isSameComplex64( x, y );\n* // returns true\n*\n* @example\n* var Complex64 = require( '@stdlib/complex-float32-ctor' );\n* var isSameComplex64 = require( '@stdlib/assert-is-same-complex64' );\n*\n* var x = new Complex64( 1.0, 2.0 );\n* var y = new Complex64( -1.0, -2.0 );\n*\n* var out = isSameComplex64( x, y );\n* // returns false\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,EAAc,QAAS,6BAA8B,EACrDC,EAAe,QAAS,mDAAoD,EA8BhF,SAASC,EAAiBC,EAAIC,EAAK,CAClC,OAASJ,EAAaG,CAAG,GAAKH,EAAaI,CAAG,GAAKH,EAAcE,EAAIC,CAAG,CACzE,CAKAL,EAAO,QAAUG,ICZjB,IAAIG,EAAO,IAKX,OAAO,QAAUA",
6
6
  "names": ["require_main", "__commonJSMin", "exports", "module", "isComplex64", "isSameValuef", "isSameComplex64", "v1", "v2", "main"]
7
7
  }
package/lib/main.js CHANGED
@@ -52,10 +52,7 @@ var isSameValuef = require( '@stdlib/complex-float32-base-assert-is-same-value'
52
52
  * // returns false
53
53
  */
54
54
  function isSameComplex64( v1, v2 ) {
55
- if ( isComplex64( v1 ) && isComplex64( v2 ) ) {
56
- return isSameValuef( v1, v2 );
57
- }
58
- return false;
55
+ return ( isComplex64( v1 ) && isComplex64( v2 ) && isSameValuef( v1, v2 ) );
59
56
  }
60
57
 
61
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/assert-is-same-complex64",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Test if two arguments are both single-precision complex floating-point numbers and have the same value.",
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/assert-is-complex64": "^0.2.2",
34
- "@stdlib/complex-float32-base-assert-is-same-value": "^0.1.0"
33
+ "@stdlib/assert-is-complex64": "^0.2.3",
34
+ "@stdlib/complex-float32-base-assert-is-same-value": "^0.1.2"
35
35
  },
36
36
  "devDependencies": {},
37
37
  "engines": {