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

@comunica/mediator-number

Package Overview
Dependencies
Maintainers
3
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.4.0 to 1.4.1

8

lib/MediatorNumber.js

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