Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@kentcdodds/tmp-random-number-2

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kentcdodds/tmp-random-number-2 - npm Package Compare versions

Comparing version
1.0.3
to
1.0.4
+9
dist/index.js
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (min, max) {
return Math.random() * (max - min) + min;
};
+40
-5
{
"name": "@kentcdodds/tmp-random-number-2",
"version": "1.0.3",
"version": "1.0.4",
"description": "Do not use this, it is fake",
"main": "index.js",
"main": "dist/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "babel --copy-files --out-dir dist --ignore __tests__,__mocks__ src",
"test": "jest --coverage",
"lint": "eslint .",
"validate": "npm-run-all --parallel build test lint",
"setup": "npm install && npm run validate"
},

@@ -13,3 +17,3 @@ "keywords": [

"files": [
"index.js"
"dist"
],

@@ -25,3 +29,34 @@ "author": "Kent C. Dodds <kent@doddsfamily.us> (http://kentcdodds.com/)",

},
"homepage": "https://github.com/kentcdodds/tmp-random-number-2#readme"
"homepage": "https://github.com/kentcdodds/tmp-random-number-2#readme",
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.6.1",
"eslint": "^4.19.1",
"jest": "^22.4.3",
"npm-run-all": "^4.1.2"
},
"eslintConfig": {
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
},
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
"jest": true
}
},
"eslintIgnore": [
"node_modules",
"coverage",
"dist"
],
"babel": {
"presets": [
"env"
]
}
}
-1
module.exports = (min, max) => Math.random() * (max - min) + min