ml-array-xy-max-y
Advanced tools
Comparing version
@@ -6,2 +6,18 @@ # Change Log | ||
# [1.0.0](https://github.com/mljs/array-xy/compare/ml-array-xy-max-y@0.2.7...ml-array-xy-max-y@1.0.0) (2019-06-29) | ||
### chore | ||
* update dependencies and remove support for Node.js 6 ([dc23f9c](https://github.com/mljs/array-xy/commit/dc23f9c)) | ||
### BREAKING CHANGES | ||
* Node.js 6 is no longer supported | ||
## [0.2.7](https://github.com/mljs/array-xy/compare/ml-array-xy-max-y@0.2.6...ml-array-xy-max-y@0.2.7) (2019-05-03) | ||
@@ -8,0 +24,0 @@ |
@@ -58,5 +58,5 @@ 'use strict'; | ||
if (reverse) { | ||
index = binarySearch(x, value, numSort.desc); | ||
index = binarySearch(x, value, numSort.descending); | ||
} else { | ||
index = binarySearch(x, value, numSort.asc); | ||
index = binarySearch(x, value, numSort.ascending); | ||
} | ||
@@ -63,0 +63,0 @@ |
{ | ||
"name": "ml-array-xy-max-y", | ||
"version": "0.2.7", | ||
"version": "1.0.0", | ||
"description": "Find the maximum ordinate value in a range of abscissas of a {x:[], y:[]}", | ||
@@ -23,6 +23,6 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"binary-search": "^1.3.2", | ||
"num-sort": "^1.0.0" | ||
"binary-search": "^1.3.5", | ||
"num-sort": "^2.0.0" | ||
}, | ||
"gitHead": "1321c2b63d8d201d6242bdcbfdb7b7bdfc0e719a" | ||
} |
import binarySearch from 'binary-search'; | ||
import { asc, desc } from 'num-sort'; | ||
import { ascending, descending } from 'num-sort'; | ||
@@ -54,5 +54,5 @@ /** | ||
if (reverse) { | ||
index = binarySearch(x, value, desc); | ||
index = binarySearch(x, value, descending); | ||
} else { | ||
index = binarySearch(x, value, asc); | ||
index = binarySearch(x, value, ascending); | ||
} | ||
@@ -59,0 +59,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
9739
3.67%1
-50%1
Infinity%+ Added
- Removed
- Removed
Updated
Updated