@comunica/mediator-number
Advanced tools
Comparing version 1.18.1 to 1.19.0
@@ -25,3 +25,3 @@ "use strict"; | ||
return (tests) => tests.reduce((prev, curr, i) => { | ||
const val = this.getOrDefault(curr[this.field], Infinity); | ||
const val = this.getOrDefault(curr[this.field], Number.POSITIVE_INFINITY); | ||
return val !== null && (Number.isNaN(prev[0]) || prev[0] > val) ? [val, i] : prev; | ||
@@ -31,3 +31,3 @@ }, [Number.NaN, -1])[1]; | ||
return (tests) => tests.reduce((prev, curr, i) => { | ||
const val = this.getOrDefault(curr[this.field], -Infinity); | ||
const val = this.getOrDefault(curr[this.field], Number.NEGATIVE_INFINITY); | ||
return val !== null && (Number.isNaN(prev[0]) || prev[0] < val) ? [val, i] : prev; | ||
@@ -34,0 +34,0 @@ }, [Number.NaN, -1])[1]; |
{ | ||
"name": "@comunica/mediator-number", | ||
"version": "1.18.1", | ||
"version": "1.19.0", | ||
"description": "A mediator for a single mediation number value", | ||
"lsd:module": "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/mediator-number", | ||
"lsd:components": "components/components.jsonld", | ||
"lsd:contexts": { | ||
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/mediator-number/^1.0.0/components/context.jsonld": "components/context.jsonld" | ||
}, | ||
"lsd:importPaths": { | ||
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/mediator-number/^1.0.0/components/": "components/" | ||
}, | ||
"lsd:module": true, | ||
"main": "index.js", | ||
@@ -43,3 +36,3 @@ "typings": "index", | ||
"devDependencies": { | ||
"@comunica/core": "^1.18.1" | ||
"@comunica/core": "^1.19.0" | ||
}, | ||
@@ -68,3 +61,3 @@ "jest": { | ||
}, | ||
"gitHead": "b092f38cc4d90bbfa360c99f779dbedbd51dcadf" | ||
"gitHead": "6a46f089ac0fbef36eb8373cadc8c319dc39efd7" | ||
} |
Sorry, the diff of this file is not supported yet
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
14753