feat: init
This commit is contained in:
9
node_modules/unenv/dist/runtime/node/internal/crypto/web.mjs
generated
vendored
Normal file
9
node_modules/unenv/dist/runtime/node/internal/crypto/web.mjs
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
// https://nodejs.org/api/crypto.html
|
||||
// https://github.com/unjs/uncrypto
|
||||
export const subtle = globalThis.crypto?.subtle;
|
||||
export const randomUUID = () => {
|
||||
return globalThis.crypto?.randomUUID();
|
||||
};
|
||||
export const getRandomValues = (array) => {
|
||||
return globalThis.crypto?.getRandomValues(array);
|
||||
};
|
||||
Reference in New Issue
Block a user