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

@comunica/mediator-number

Package Overview
Dependencies
Maintainers
4
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@comunica/mediator-number - npm Package Compare versions

Comparing version 1.18.1 to 1.19.0

4

lib/MediatorNumber.js

@@ -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

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