Files
site/node_modules/uncrypto/dist/crypto.node.cjs
T
site-admin 3ac81d5a52
deploy / build-and-publish (push) Successful in 1m37s
the editable site (validation-lab)
2026-11-21 08:03:55 +01:00

28 lines
737 B
JavaScript

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const nodeCrypto = require('node:crypto');
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
const nodeCrypto__default = /*#__PURE__*/_interopDefaultCompat(nodeCrypto);
const subtle = nodeCrypto__default.webcrypto?.subtle || {};
const randomUUID = () => {
return nodeCrypto__default.randomUUID();
};
const getRandomValues = (array) => {
return nodeCrypto__default.webcrypto.getRandomValues(array);
};
const _crypto = {
randomUUID,
getRandomValues,
subtle
};
exports.default = _crypto;
exports.getRandomValues = getRandomValues;
exports.randomUUID = randomUUID;
exports.subtle = subtle;