cryptoNode.js 448 B

12345678910
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.crypto = void 0;
  4. // We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+.
  5. // See utils.ts for details.
  6. // The file will throw on node.js 14 and earlier.
  7. // @ts-ignore
  8. const nc = require("node:crypto");
  9. exports.crypto = nc && typeof nc === 'object' && 'webcrypto' in nc ? nc.webcrypto : undefined;
  10. //# sourceMappingURL=cryptoNode.js.map