node-wit
node-wit copied to clipboard
Declare a new instance with function, no more class constructor ?
Hi,
I just downloaded the last release of node-wit (4.2.0) with
npm install --save node-wit
Then ,
const Wit = require('node-wit')
But Wit is no more a constructor but now a function, so it works with
const client = Wit.Wit({ accessToken: '<ACCESS_TOKEN>' })
In the doc, it's still saying that is a constructor. Is it normal ?
Thanks :)