stevenvachon / broken-link-checker

Find broken links, missing images, etc within your HTML.
MIT License
1.95k stars 302 forks source link

`SiteChecker.prototype.on` is not a function #253

Open hasezoey opened 1 year ago

hasezoey commented 1 year ago

Describe the bug SiteChecker.prototype.on is not a function

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

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