dijs / wiki

Wikipedia Interface for Node.js
MIT License
315 stars 61 forks source link

page.title does not work #150

Closed bumbummen99 closed 3 years ago

bumbummen99 commented 3 years ago

Using page.title as shown in the documentation does not work.

https://dijs.github.io/wiki/Wiki.html#find

Test:

const page = await wiki().find('Alphabet');
if (page) {
 console.log(page.title ?? 'No title, title is ' + typeof page.title));
}

Output:

No title, title is undefined
dijs commented 3 years ago

Fixed and released in v6.1.1