secure-random-octet 1.0.4 → 3.0.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/LICENSE.txt +1 -1
- package/index.js +2 -2
- package/package.json +12 -10
- package/CHANGELOG.md +0 -9
package/LICENSE.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright 2014-
|
|
1
|
+
Copyright 2014-2022 Kenan Yildirim <https://kenany.me/>
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
4
|
this software and associated documentation files (the "Software"), to deal in
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const getRandomValues = require('get-random-values');
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Generates a cryptographically secure octet.
|
|
@@ -6,7 +6,7 @@ var getRandomValues = require('get-random-values');
|
|
|
6
6
|
* @returns {number} A cryptographically secure octet
|
|
7
7
|
*/
|
|
8
8
|
function secureRandomOctet() {
|
|
9
|
-
|
|
9
|
+
const buf = new Uint8Array(1);
|
|
10
10
|
getRandomValues(buf);
|
|
11
11
|
return buf[0];
|
|
12
12
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "secure-random-octet",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Generate a cryptographically secure octet",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"crypto"
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"directories": {
|
|
17
17
|
"test": "test"
|
|
18
18
|
},
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": "14 || 16 || >=18"
|
|
21
|
+
},
|
|
19
22
|
"scripts": {
|
|
20
23
|
"lint": "eslint *.js test/*.js",
|
|
21
24
|
"tests-only": "tape test/index.js",
|
|
@@ -25,20 +28,19 @@
|
|
|
25
28
|
"test": "npm run -s tests-only"
|
|
26
29
|
},
|
|
27
30
|
"dependencies": {
|
|
28
|
-
"get-random-values": "^
|
|
31
|
+
"get-random-values": "^2.0.0"
|
|
29
32
|
},
|
|
30
33
|
"devDependencies": {
|
|
31
|
-
"@kenan/eslint-config": "^
|
|
32
|
-
"@
|
|
33
|
-
"@semantic-release/
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"eslint": "^7.23.0",
|
|
34
|
+
"@kenan/eslint-config": "^9.0.4",
|
|
35
|
+
"@semantic-release/changelog": "^6.0.1",
|
|
36
|
+
"@semantic-release/git": "^10.0.1",
|
|
37
|
+
"conventional-changelog-conventionalcommits": "^5.0.0",
|
|
38
|
+
"eslint": "^7.32.0",
|
|
37
39
|
"lodash.every": "^4.6.0",
|
|
38
40
|
"lodash.isfunction": "^3.0.9",
|
|
39
41
|
"lodash.isnumber": "^3.0.3",
|
|
40
42
|
"nyc": "^15.1.0",
|
|
41
|
-
"semantic-release": "^
|
|
42
|
-
"tape": "^5.
|
|
43
|
+
"semantic-release": "^19.0.3",
|
|
44
|
+
"tape": "^5.5.3"
|
|
43
45
|
}
|
|
44
46
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
### [1.0.4](https://github.com/KenanY/secure-random-octet/compare/1.0.3...1.0.4) (2021-04-01)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Bug Fixes
|
|
5
|
-
|
|
6
|
-
* **doc:** remove travis badge ([5f75954](https://github.com/KenanY/secure-random-octet/commit/5f75954f5100a7d1fd5645a35b687845f29e9afd))
|
|
7
|
-
* **doc:** update license year to 2021 ([79f4d1c](https://github.com/KenanY/secure-random-octet/commit/79f4d1cdd4ae2eff8290ac05e253bfbce56147c0))
|
|
8
|
-
* add JSDoc ([5852111](https://github.com/KenanY/secure-random-octet/commit/58521118066cc0ccd49139fd441f41552d8e5f82))
|
|
9
|
-
* **deps:** get-random-values@1.2.2 ([2991e8b](https://github.com/KenanY/secure-random-octet/commit/2991e8b6cd7017baa4f39d598bc820c542a2dec2))
|