bartve / disconnect

An easy to use Node.js client with OAuth support to connect with the discogs.com API v2.0
MIT License
458 stars 79 forks source link

When instantiating DiscogsClient as a function, must supply userAgent argument #43

Open felamaslen opened 7 years ago

felamaslen commented 7 years ago

Instantiating DiscogsClient as a function (without the new) keyword and only one parameter, results in the parameter being interpreted as userAgent, rather than auth.

Tested on Node version 8.4.0.

bartve commented 6 years ago

Yikes. So busy with other things in life I haven't even investigated this. Open to pull requests by the way!

Anyway, I do not recommend calling it as a function as this will be removed in the es6 release,