From 8b52cbb2cbde52f75d72b4249a7dae45fdd4c882 Mon Sep 17 00:00:00 2001 From: Mark Nadal Date: Thu, 14 Jul 2022 17:27:31 -0700 Subject: [PATCH] oh, try export --- lib/radisk3.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/radisk3.js b/lib/radisk3.js index fad94c45..10028c38 100644 --- a/lib/radisk3.js +++ b/lib/radisk3.js @@ -106,7 +106,9 @@ function fname(p){ return opt.file+'/'+ename(p.substring()) } var opt = {}; opt.file = String(opt.file || 'radata'); - + +try{module.exports=RAD}catch(e){} + // junk below that needs to be cleaned up and corrected for the actual correct RAD API. var env = {}, nope = function(){}, nah = function(){ return nope }, u; env.require = (typeof require !== ''+u && require) || nope;