From 02c134dea75443bb62377f9354274966c8a559a8 Mon Sep 17 00:00:00 2001 From: Nathan Kunicki Date: Thu, 21 Jun 2018 13:56:52 +0100 Subject: [PATCH] Proper exports --- lpf2.ts | 3 +++ vernie.js | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lpf2.ts b/lpf2.ts index a74893b..bf52bbb 100644 --- a/lpf2.ts +++ b/lpf2.ts @@ -100,3 +100,6 @@ export class LPF2 extends EventEmitter { } + +export default LPF2; +export { Hub, WeDo2Hub, BoostHub }; diff --git a/vernie.js b/vernie.js index af82160..2fb43b0 100644 --- a/vernie.js +++ b/vernie.js @@ -1,6 +1,6 @@ -const LPF2 = require("."); +const LPF2 = require(".").LPF2; -const lpf2 = new LPF2.LPF2(); +const lpf2 = new LPF2(); lpf2.scan(); lpf2.on("discover", (hub) => {