matthewmueller / x-ray

The next web scraper. See through the <html> noise.
MIT License
5.87k stars 349 forks source link

Fix promise compatibility #339

Closed leonardodino closed 5 years ago

leonardodino commented 5 years ago

Description

Fix Promise compatibility (allows use with async/await).

Currently, it's ignoring the second parameter, meaning it won't ever run catch blocks.

closes #62

Checklist

lathropd commented 5 years ago

this needs a test case

leonardodino commented 5 years ago

Rebased and added a test. (:

(I'm using it in production via async/await)