extra-rand 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -9
- package/dist/es2015/index.umd.js +2 -2
- package/dist/es2018/index.umd.js +2 -2
- package/package.json +17 -17
- package/CHANGELOG.md +0 -10
package/README.md
CHANGED
|
@@ -17,9 +17,7 @@ yarn add extra-rand
|
|
|
17
17
|
function random(min: number, max: number): number
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
[min, max)
|
|
22
|
-
```
|
|
20
|
+
Return a number in the range `[min, max)`.
|
|
23
21
|
|
|
24
22
|
### randomInt
|
|
25
23
|
|
|
@@ -27,9 +25,7 @@ function random(min: number, max: number): number
|
|
|
27
25
|
function randomInt(min: number, max: number): number
|
|
28
26
|
```
|
|
29
27
|
|
|
30
|
-
|
|
31
|
-
[Math.ceil(min), Math.floor(max))
|
|
32
|
-
```
|
|
28
|
+
Return an integer in the range `[Math.ceil(min), Math.floor(max))`.
|
|
33
29
|
|
|
34
30
|
### randomIntInclusive
|
|
35
31
|
|
|
@@ -37,6 +33,4 @@ function randomInt(min: number, max: number): number
|
|
|
37
33
|
function randomIntInclusive(min: number, max: number): number
|
|
38
34
|
```
|
|
39
35
|
|
|
40
|
-
|
|
41
|
-
[Math.ceil(min), Math.floor(max)]
|
|
42
|
-
```
|
|
36
|
+
Return an integer in the range `[Math.ceil(min), Math.floor(max)]`.
|
package/dist/es2015/index.umd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ExtraRand = {}));
|
|
5
|
-
}(this, (function (exports) { 'use strict';
|
|
5
|
+
})(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function random(min, max) {
|
|
8
8
|
return Math.random() * (max - min) + min;
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
|
|
27
27
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
28
28
|
|
|
29
|
-
}))
|
|
29
|
+
}));
|
|
30
30
|
//# sourceMappingURL=index.umd.js.map
|
package/dist/es2018/index.umd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ExtraRand = {}));
|
|
5
|
-
}(this, (function (exports) { 'use strict';
|
|
5
|
+
})(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function random(min, max) {
|
|
8
8
|
return Math.random() * (max - min) + min;
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
|
|
27
27
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
28
28
|
|
|
29
|
-
}))
|
|
29
|
+
}));
|
|
30
30
|
//# sourceMappingURL=index.umd.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "extra-rand",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Yet another random library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"random"
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
],
|
|
12
12
|
"main": "lib/es2018/index.js",
|
|
13
13
|
"types": "lib/es2018/index.d.ts",
|
|
14
|
+
"sideEffects": false,
|
|
14
15
|
"repository": "git@github.com:BlackGlory/extra-rand.git",
|
|
15
16
|
"author": "BlackGlory <woshenmedoubuzhidao@blackglory.me>",
|
|
16
17
|
"license": "MIT",
|
|
@@ -40,31 +41,30 @@
|
|
|
40
41
|
}
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
|
-
"@commitlint/cli": "^
|
|
44
|
-
"@commitlint/config-conventional": "^
|
|
45
|
-
"@rollup/plugin-commonjs": "^
|
|
44
|
+
"@commitlint/cli": "^16.0.1",
|
|
45
|
+
"@commitlint/config-conventional": "^16.0.0",
|
|
46
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
|
46
47
|
"@rollup/plugin-json": "^4.1.0",
|
|
47
|
-
"@rollup/plugin-node-resolve": "^
|
|
48
|
-
"@rollup/plugin-replace": "^
|
|
48
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
49
|
+
"@rollup/plugin-replace": "^3.0.1",
|
|
49
50
|
"@rollup/plugin-typescript": "^8.2.0",
|
|
50
|
-
"@types/jest": "^
|
|
51
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
52
|
-
"@typescript-eslint/parser": "^
|
|
53
|
-
"eslint": "^
|
|
54
|
-
"extra-generator": "^0.2.
|
|
51
|
+
"@types/jest": "^27.4.0",
|
|
52
|
+
"@typescript-eslint/eslint-plugin": "^5.9.0",
|
|
53
|
+
"@typescript-eslint/parser": "^5.9.0",
|
|
54
|
+
"eslint": "^8.6.0",
|
|
55
|
+
"extra-generator": "^0.2.15",
|
|
55
56
|
"husky": "^4.3.8",
|
|
56
|
-
"jest": "^
|
|
57
|
-
"jest-extended": "^0.11.5",
|
|
57
|
+
"jest": "^27.4.7",
|
|
58
58
|
"npm-run-all": "^4.1.5",
|
|
59
59
|
"rimraf": "^3.0.2",
|
|
60
|
-
"rollup": "^2.
|
|
60
|
+
"rollup": "^2.63.0",
|
|
61
61
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
62
62
|
"rollup-plugin-terser": "^7.0.2",
|
|
63
63
|
"standard-version": "^9.1.1",
|
|
64
|
-
"ts-jest": "^
|
|
64
|
+
"ts-jest": "^27.1.2",
|
|
65
65
|
"tscpaths": "^0.0.9",
|
|
66
|
-
"tslib": "^2.1
|
|
67
|
-
"typescript": "^4.
|
|
66
|
+
"tslib": "^2.3.1",
|
|
67
|
+
"typescript": "^4.5.4"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {}
|
|
70
70
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
-
|
|
5
|
-
## 0.1.0 (2021-03-26)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Features
|
|
9
|
-
|
|
10
|
-
* init ([19bc50c](https://github.com/BlackGlory/extra-rand/commit/19bc50ca88b649eef6738e858048e40418a6fb84))
|