From 50250d8c83dbbdb0ffbb8dd6d27df539fe03b1c8 Mon Sep 17 00:00:00 2001 From: andrewd Date: Wed, 17 Feb 2016 16:56:27 +0000 Subject: [PATCH] Fixing crypto require for older version of decimal, needed for a project I'm working on --- decimal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decimal.js b/decimal.js index 065f08f..672c7c2 100644 --- a/decimal.js +++ b/decimal.js @@ -4046,7 +4046,7 @@ if ( !crypto ) { try { - crypto = require('crypto'); + crypto = require('cry' + 'pto'); } catch (e) {} }