full site update
This commit is contained in:
16
node_modules/uncrypto/dist/crypto.node.mjs
generated
vendored
Normal file
16
node_modules/uncrypto/dist/crypto.node.mjs
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import nodeCrypto from 'node:crypto';
|
||||
|
||||
const subtle = nodeCrypto.webcrypto?.subtle || {};
|
||||
const randomUUID = () => {
|
||||
return nodeCrypto.randomUUID();
|
||||
};
|
||||
const getRandomValues = (array) => {
|
||||
return nodeCrypto.webcrypto.getRandomValues(array);
|
||||
};
|
||||
const _crypto = {
|
||||
randomUUID,
|
||||
getRandomValues,
|
||||
subtle
|
||||
};
|
||||
|
||||
export { _crypto as default, getRandomValues, randomUUID, subtle };
|
Reference in New Issue
Block a user