"skipFirstLoad: true" Doesn't Work?
JimLynchCodes opened this issue Β· comments
Hi, I am using this code:
const RssFeedEmitter = require('rss-feed-emitter');
const feeder = new RssFeedEmitter({ skipFirstLoad: true });
feeder.add({
url: 'http://www.nintendolife.com/feeds/news',
refresh: 2000
});
feeder.on('new-item', function (item) {
console.log(item);
})
console.log('Feed watcher bot is listening... ')
but it returns a whole mountain of posts. I would think it shouldn't return anything but the console.log statement since the skipFirstLoad: true
was passed in...
using node v12.16.1 and rss-feed-emitter
v3.1.0
same result with node v11.15.0...
our unit tests seem to think it works fine
Can confirm this issue
I can confirm this also.
rss-feed-emitter/src/FeedManager.js
Line 70 in 367cec2
Must be changed to this.populateNewItemsInFeed(data, firstLoad);
The release is available on:
Your semantic-release bot