Skip to content

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

Open
@PaulRosset

Description

@PaulRosset

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions