Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bounds

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bounds - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

8

index.js

@@ -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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc