🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@rgsoft/math

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rgsoft/math - npm Package Compare versions

Comparing version

to
1.0.5

14

dist/index.js

@@ -407,14 +407,8 @@ "use strict";

if (!Number.isInteger(n)) {
throw new Error(`Non integer received: ${n}`);
throw new Error("The number must be an integer");
}
if (!Number.isInteger(m)) {
throw new Error(`Non integer received: ${m}`);
if (!Number.isInteger(m) || m <= 0) {
throw new Error("Modulo must be a positive integer");
}
if (m <= 0) {
throw new Error(`Modulo must be positive: ${m}`);
}
while (n < 0) {
n += m;
}
return n % m;
return (n % m + m) % m;
}

@@ -421,0 +415,0 @@ // Annotate the CommonJS export names for ESM import in node:

{
"name": "@rgsoft/math",
"version": "1.0.4",
"version": "1.0.5",
"description": "Yet another JS math library",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet