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

This issue has been tracked since 2017-05-10.

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

More Details About Repo
Owner Name wit-ai
Repo Name node-wit
Full Name wit-ai/node-wit
Language JavaScript
Created Date 2016-04-12
Updated Date 2022-12-02
Star Count 1928
Watcher Count 98
Fork Count 497
Issue Count 36

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date