node-wit icon indicating copy to clipboard operation
node-wit copied to clipboard

Declare a new instance with function, no more class constructor ?

Open PaulRosset opened this issue 8 years ago • 0 comments

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 :)

PaulRosset avatar May 10 '17 20:05 PaulRosset