@deboxsoft/module-server
Advanced tools
Comparing version 2.6.11 to 2.6.12
@@ -1616,10 +1616,8 @@ var __defProp = Object.defineProperty; | ||
// src/utils/bcrypt/index.ts | ||
var crypto; | ||
import crypto from "crypto"; | ||
function setCrypto(c) { | ||
crypto = c; | ||
globalThis.crypto = c; | ||
} | ||
function random2(len) { | ||
const a = new Uint32Array(len); | ||
(crypto || globalThis.crypto).getRandomValues(a); | ||
return Array.prototype.slice.call(a); | ||
return crypto.randomBytes(len); | ||
} | ||
@@ -1626,0 +1624,0 @@ function genSaltSync(rounds) { |
{ | ||
"name": "@deboxsoft/module-server", | ||
"version": "2.6.11", | ||
"version": "2.6.12", | ||
"license": "SEE LICENSE IN LICENSE", | ||
@@ -26,5 +26,3 @@ "maintainers": [ | ||
"files": [ | ||
"*", | ||
"!src", | ||
"!tests" | ||
"libs" | ||
], | ||
@@ -50,3 +48,3 @@ "publishConfig": { | ||
"devDependencies": { | ||
"@deboxsoft/module-core": "^2.6.23", | ||
"@deboxsoft/module-core": "^2.6.34", | ||
"@fastify/websocket": "^7.0.1", | ||
@@ -53,0 +51,0 @@ "@types/nconf": "^0.10.2", |
Sorry, the diff of this file is not supported yet
95091
5
4462