secure-random-octet 6.0.0 → 6.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/dist/index.cjs +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
}
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
20
20
|
value: mod,
|
|
21
21
|
enumerable: true
|
|
22
22
|
}) : target, mod));
|
|
@@ -26,7 +26,7 @@ get_random_values = __toESM(get_random_values);
|
|
|
26
26
|
//#region src/index.ts
|
|
27
27
|
/** Generates a cryptographically secure octet. */
|
|
28
28
|
function secureRandomOctet() {
|
|
29
|
-
const buf = new Uint8Array(1);
|
|
29
|
+
const buf = /* @__PURE__ */ new Uint8Array(1);
|
|
30
30
|
(0, get_random_values.default)(buf);
|
|
31
31
|
return buf[0];
|
|
32
32
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import getRandomValues from "get-random-values";
|
|
|
2
2
|
//#region src/index.ts
|
|
3
3
|
/** Generates a cryptographically secure octet. */
|
|
4
4
|
function secureRandomOctet() {
|
|
5
|
-
const buf = new Uint8Array(1);
|
|
5
|
+
const buf = /* @__PURE__ */ new Uint8Array(1);
|
|
6
6
|
getRandomValues(buf);
|
|
7
7
|
return buf[0];
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "secure-random-octet",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "Generate a cryptographically secure octet",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"crypto"
|
|
@@ -38,18 +38,18 @@
|
|
|
38
38
|
"node": "22 || 24 || >=26"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"get-random-values": "^5.0.
|
|
41
|
+
"get-random-values": "^5.0.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@biomejs/biome": "2.
|
|
45
|
-
"@containerbase/semantic-release-pnpm": "1.4.
|
|
44
|
+
"@biomejs/biome": "2.5.11",
|
|
45
|
+
"@containerbase/semantic-release-pnpm": "1.4.3",
|
|
46
46
|
"@kenan/biome-config": "1.0.6",
|
|
47
47
|
"conventional-changelog-conventionalcommits": "9.3.1",
|
|
48
|
-
"publint": "0.3.
|
|
49
|
-
"semantic-release": "25.0.
|
|
50
|
-
"tsdown": "0.22.
|
|
51
|
-
"typescript": "
|
|
52
|
-
"vitest": "4.1.
|
|
48
|
+
"publint": "0.3.24",
|
|
49
|
+
"semantic-release": "25.0.9",
|
|
50
|
+
"tsdown": "0.22.14",
|
|
51
|
+
"typescript": "7.0.2",
|
|
52
|
+
"vitest": "4.1.11"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "tsdown && tsc --noEmit",
|