@stdlib/assert-is-same-float64array 0.2.1 → 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 +1 -1
- package/README.md +5 -5
- package/dist/index.js +3 -3
- package/dist/index.js.map +2 -2
- package/lib/main.js +1 -4
- package/package.json +3 -3
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2026 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -154,7 +154,7 @@ See [LICENSE][stdlib-license].
|
|
|
154
154
|
|
|
155
155
|
## Copyright
|
|
156
156
|
|
|
157
|
-
Copyright © 2016-
|
|
157
|
+
Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors].
|
|
158
158
|
|
|
159
159
|
</section>
|
|
160
160
|
|
|
@@ -167,8 +167,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
167
167
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/assert-is-same-float64array.svg
|
|
168
168
|
[npm-url]: https://npmjs.org/package/@stdlib/assert-is-same-float64array
|
|
169
169
|
|
|
170
|
-
[test-image]: https://github.com/stdlib-js/assert-is-same-float64array/actions/workflows/test.yml/badge.svg?branch=v0.2.
|
|
171
|
-
[test-url]: https://github.com/stdlib-js/assert-is-same-float64array/actions/workflows/test.yml?query=branch:v0.2.
|
|
170
|
+
[test-image]: https://github.com/stdlib-js/assert-is-same-float64array/actions/workflows/test.yml/badge.svg?branch=v0.2.3
|
|
171
|
+
[test-url]: https://github.com/stdlib-js/assert-is-same-float64array/actions/workflows/test.yml?query=branch:v0.2.3
|
|
172
172
|
|
|
173
173
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/assert-is-same-float64array/main.svg
|
|
174
174
|
[coverage-url]: https://codecov.io/github/stdlib-js/assert-is-same-float64array?branch=main
|
|
@@ -180,8 +180,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
180
180
|
|
|
181
181
|
-->
|
|
182
182
|
|
|
183
|
-
[chat-image]: https://img.shields.io/
|
|
184
|
-
[chat-url]: https://
|
|
183
|
+
[chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
|
|
184
|
+
[chat-url]: https://stdlib.zulipchat.com
|
|
185
185
|
|
|
186
186
|
[stdlib]: https://github.com/stdlib-js/stdlib
|
|
187
187
|
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";var i=function(e,r){return function(){return r||e((r={exports:{}}).exports,r),r.exports}};var t=i(function(
|
|
2
|
-
var a=require('@stdlib/assert-is-float64array/dist'),u=require('@stdlib/array-base-assert-has-same-values/dist');function
|
|
3
|
-
});var
|
|
1
|
+
"use strict";var i=function(e,r){return function(){return r||e((r={exports:{}}).exports,r),r.exports}};var t=i(function(l,s){
|
|
2
|
+
var a=require('@stdlib/assert-is-float64array/dist'),u=require('@stdlib/array-base-assert-has-same-values/dist');function o(e,r){return a(e)&&a(r)&&u(e,r)}s.exports=o
|
|
3
|
+
});var n=t();module.exports=n;
|
|
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 isFloat64Array = require( '@stdlib/assert-is-float64array' );\nvar hasSameValues = require( '@stdlib/array-base-assert-has-same-values' );\n\n\n// MAIN //\n\n/**\n* Tests if two arguments are both Float64Arrays and have the same values.\n*\n* @param {*} v1 - first value\n* @param {*} v2 - second value\n* @returns {boolean} boolean result\n*\n* @example\n* var Float64Array = require( '@stdlib/array-float64' );\n*\n* var x = new Float64Array( [ 1.0, 2.0, 3.0 ] );\n* var y = new Float64Array( [ 1.0, 2.0, 3.0 ] );\n*\n* var out = isSameFloat64Array( x, y );\n* // returns true\n*\n* @example\n* var Float64Array = require( '@stdlib/array-float64' );\n*\n* var x = new Float64Array( [ 1.0, 2.0, 3.0 ] );\n* var y = new Float64Array( [ 1.0, 2.0, 4.0 ] );\n*\n* var out = isSameFloat64Array( x, y );\n* // returns false\n*/\nfunction isSameFloat64Array( v1, v2 ) {\n\
|
|
5
|
-
"mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAiB,QAAS,gCAAiC,EAC3DC,EAAgB,QAAS,2CAA4C,EA8BzE,SAASC,EAAoBC,EAAIC,EAAK,CACrC,
|
|
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 isFloat64Array = require( '@stdlib/assert-is-float64array' );\nvar hasSameValues = require( '@stdlib/array-base-assert-has-same-values' );\n\n\n// MAIN //\n\n/**\n* Tests if two arguments are both Float64Arrays and have the same values.\n*\n* @param {*} v1 - first value\n* @param {*} v2 - second value\n* @returns {boolean} boolean result\n*\n* @example\n* var Float64Array = require( '@stdlib/array-float64' );\n*\n* var x = new Float64Array( [ 1.0, 2.0, 3.0 ] );\n* var y = new Float64Array( [ 1.0, 2.0, 3.0 ] );\n*\n* var out = isSameFloat64Array( x, y );\n* // returns true\n*\n* @example\n* var Float64Array = require( '@stdlib/array-float64' );\n*\n* var x = new Float64Array( [ 1.0, 2.0, 3.0 ] );\n* var y = new Float64Array( [ 1.0, 2.0, 4.0 ] );\n*\n* var out = isSameFloat64Array( x, y );\n* // returns false\n*/\nfunction isSameFloat64Array( v1, v2 ) {\n\treturn ( isFloat64Array( v1 ) && isFloat64Array( v2 ) && hasSameValues( v1, v2 ) ); // eslint-disable-line max-len\n}\n\n\n// EXPORTS //\n\nmodule.exports = isSameFloat64Array;\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 Float64Arrays and have the same values.\n*\n* @module @stdlib/assert-is-same-float64array\n*\n* @example\n* var Float64Array = require( '@stdlib/array-float64' );\n* var isSameFloat64Array = require( '@stdlib/assert-is-same-float64array' );\n*\n* var x = new Float64Array( [ 1.0, 2.0, 3.0 ] );\n* var y = new Float64Array( [ 1.0, 2.0, 3.0 ] );\n*\n* var out = isSameFloat64Array( x, y );\n* // returns true\n*\n* @example\n* var Float64Array = require( '@stdlib/array-float64' );\n* var isSameFloat64Array = require( '@stdlib/assert-is-same-float64array' );\n*\n* var x = new Float64Array( [ 1.0, 2.0, 3.0 ] );\n* var y = new Float64Array( [ 1.0, 2.0, 4.0 ] );\n*\n* var out = isSameFloat64Array( 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,EAAiB,QAAS,gCAAiC,EAC3DC,EAAgB,QAAS,2CAA4C,EA8BzE,SAASC,EAAoBC,EAAIC,EAAK,CACrC,OAASJ,EAAgBG,CAAG,GAAKH,EAAgBI,CAAG,GAAKH,EAAeE,EAAIC,CAAG,CAChF,CAKAL,EAAO,QAAUG,ICZjB,IAAIG,EAAO,IAKX,OAAO,QAAUA",
|
|
6
6
|
"names": ["require_main", "__commonJSMin", "exports", "module", "isFloat64Array", "hasSameValues", "isSameFloat64Array", "v1", "v2", "main"]
|
|
7
7
|
}
|
package/lib/main.js
CHANGED
|
@@ -52,10 +52,7 @@ var hasSameValues = require( '@stdlib/array-base-assert-has-same-values' );
|
|
|
52
52
|
* // returns false
|
|
53
53
|
*/
|
|
54
54
|
function isSameFloat64Array( v1, v2 ) {
|
|
55
|
-
|
|
56
|
-
return hasSameValues( v1, v2 );
|
|
57
|
-
}
|
|
58
|
-
return false;
|
|
55
|
+
return ( isFloat64Array( v1 ) && isFloat64Array( v2 ) && hasSameValues( v1, v2 ) ); // eslint-disable-line max-len
|
|
59
56
|
}
|
|
60
57
|
|
|
61
58
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/assert-is-same-float64array",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Test if two arguments are both Float64Arrays and have the same values.",
|
|
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/array-base-assert-has-same-values": "^0.
|
|
34
|
-
"@stdlib/assert-is-float64array": "^0.2.
|
|
33
|
+
"@stdlib/array-base-assert-has-same-values": "^0.3.0",
|
|
34
|
+
"@stdlib/assert-is-float64array": "^0.2.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {},
|
|
37
37
|
"engines": {
|