Open hasezoey opened 1 year ago
Describe the bug SiteChecker.prototype.on is not a function
SiteChecker.prototype.on
To Reproduce
const { SiteChecker } = require('broken-link-checker'); const { EventEmitter } = require('events'); const siteChecker = new SiteChecker({}); console.log(siteChecker instanceof EventEmitter); // logs: false siteChecker.on('end', () => {}); // Error, ".on" is not a function
Expected behavior to correctly inherit EventEmitter, or at least provide the mentioned functions
EventEmitter
from the documentation:
All methods from EventEmitter are available.
Environment:
It seems like this issue would be solved if 0.8.0 would be released, as requested in #244
Describe the bug
SiteChecker.prototype.on
is not a functionTo Reproduce
Expected behavior to correctly inherit
EventEmitter
, or at least provide the mentioned functionsfrom the documentation:
Environment:
It seems like this issue would be solved if 0.8.0 would be released, as requested in #244