Socket
Socket
Sign inDemoInstall

simple-common-utils

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.1 to 1.3.1

10

js/StaticUtils.js

@@ -224,2 +224,12 @@ export default class StaticUtils {

}
static random(min, max, round, maxInclusive) {
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random
const mn = round ? Math.ceil(min) : min;
const mx = round ? Math.floor(max) : max;
const rnd = Math.random() * (mx - mn + (round && maxInclusive ? 1 : 0));
return (round ? Math.floor(rnd) : rnd) + mn;
}
}

2

package.json
{
"name": "simple-common-utils",
"version": "1.2.1",
"version": "1.3.1",
"description": "A collection of utility classes.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc