From bac3bf209fbf1463f35b88ef084890138fcd446a Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Thu, 4 Nov 2021 00:29:39 +0200 Subject: [PATCH] Recompile --- index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index bcfb633..4a1a92c 100644 --- a/index.js +++ b/index.js @@ -26,11 +26,9 @@ function isWithinCurveOrder(num) { } const crypto = (() => { const webCrypto = typeof self === 'object' && 'crypto' in self ? self.crypto : undefined; - const nodeRequire = typeof module !== 'undefined' && - typeof module.require === 'function' && - module.require.bind(module); + const nodeRequire = typeof module !== 'undefined' && typeof require === 'function'; return { - node: nodeRequire && !webCrypto ? nodeRequire('crypto') : undefined, + node: nodeRequire && !webCrypto ? require('crypto') : undefined, web: webCrypto, }; })();