Comparing version 3.0.0 to 3.0.1
@@ -75,6 +75,6 @@ class Bounds { | ||
if (this.reversed()) { | ||
if(this.after(v) && this.before(v)) { | ||
if (this.after(v) && this.before(v)) { | ||
// select closer bound | ||
return (this._distance(_max, v) < this._distance(v, _min)) ? | ||
_max: | ||
_max : | ||
_min; | ||
@@ -84,6 +84,6 @@ } | ||
} | ||
if(this.before(v)) { | ||
if (this.before(v)) { | ||
return _min; | ||
} | ||
if(this.after(v)) { | ||
if (this.after(v)) { | ||
return _max; | ||
@@ -90,0 +90,0 @@ } |
{ | ||
"name": "bounds", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Mixin for checking if value is inside or outside of bounds", | ||
@@ -18,4 +18,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"jshint": "~2", | ||
"mocha": "~9" | ||
"@pirxpilot/jshint": "~3" | ||
}, | ||
@@ -25,2 +24,2 @@ "files": [ | ||
] | ||
} | ||
} |
@@ -68,5 +68,5 @@ [![NPM version][npm-image]][npm-url] | ||
[npm-url]: https://npmjs.org/package/bounds | ||
[npm-image]: https://img.shields.io/npm/v/bounds.svg | ||
[npm-image]: https://img.shields.io/npm/v/bounds | ||
[build-url]: https://github.com/pirxpilot/bounds/actions/workflows/check.yaml | ||
[build-image]: https://img.shields.io/github/workflow/status/pirxpilot/bounds/check | ||
[build-image]: https://img.shields.io/github/actions/workflow/status/pirxpilot/bounds/check.yaml?branch=main |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5137
1