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

@appolo/utils

Package Overview
Dependencies
Maintainers
0
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appolo/utils - npm Package Compare versions

Comparing version 8.0.56 to 8.0.57

6

lib/numbers.js

@@ -14,3 +14,3 @@ "use strict";

}
let isInt = !floating && Number.isInteger(min) && Number.isInteger(min);
let isInt = !floating && Number.isInteger(min) && Number.isInteger(max);
if (isInt) {

@@ -20,4 +20,4 @@ return Numbers.randomInt(min, max);

min = Math.min(min, max);
max = Math.max(max, max);
return (Math.random() * (max - min + 1)) + min;
max = Math.max(min, max);
return (Math.random() * (max - min)) + min;
}

@@ -24,0 +24,0 @@ static isNumber(str) {

@@ -14,3 +14,3 @@ export class Numbers {

let isInt = !floating && Number.isInteger(min) && Number.isInteger(min);
let isInt = !floating && Number.isInteger(min) && Number.isInteger(max);

@@ -22,4 +22,4 @@ if (isInt) {

min = Math.min(min, max);
max = Math.max(max, max);
return (Math.random() * (max - min + 1)) + min;
max = Math.max(min, max);
return (Math.random() * (max - min)) + min;
}

@@ -26,0 +26,0 @@

@@ -20,3 +20,3 @@ {

"main": "./index.js",
"version": "8.0.56",
"version": "8.0.57",
"license": "MIT",

@@ -23,0 +23,0 @@ "repository": {

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