@comunica/mediator-number
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -25,9 +25,9 @@ "use strict"; | ||
const val = this.getOrDefault(b[this.field], Infinity); | ||
return val !== null && a[0] >= val ? [val, i] : a; | ||
}, [Infinity, -1])[1]; | ||
return val !== null && (isNaN(a[0]) || a[0] > val) ? [val, i] : a; | ||
}, [NaN, -1])[1]; | ||
case MediatorNumber.MAX: | ||
return (tests) => tests.reduce((a, b, i) => { | ||
const val = this.getOrDefault(b[this.field], -Infinity); | ||
return val !== null && a[0] <= val ? [val, i] : a; | ||
}, [-Infinity, -1])[1]; | ||
return val !== null && (isNaN(a[0]) || a[0] < val) ? [val, i] : a; | ||
}, [NaN, -1])[1]; | ||
} | ||
@@ -34,0 +34,0 @@ throw new Error('No valid "type" value was given, must be either ' |
{ | ||
"name": "@comunica/mediator-number", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "A mediator for a single mediation number value", | ||
@@ -67,3 +67,3 @@ "lsd:module": "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/mediator-number", | ||
}, | ||
"gitHead": "6a50d602495031e69912eb17988b5c8dc5152300" | ||
"gitHead": "3f9aa8264c3378be97ff93a057e9d90afd59a2a0" | ||
} |
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
13538