fix(core): update
This commit is contained in:
12
ts/index.ts
12
ts/index.ts
@ -6,4 +6,16 @@ export class Smartfeed {
|
||||
const feedVersion = new Feed(optionsArg);
|
||||
return feedVersion;
|
||||
}
|
||||
|
||||
public async parseFeedFromString(rssFeedString: string) {
|
||||
const parser = new plugins.rssParser();
|
||||
const resultingFeed = await parser.parseString(rssFeedString);
|
||||
return resultingFeed;
|
||||
}
|
||||
|
||||
public async parseFeedFromUrl(urlArg: string) {
|
||||
const parser = new plugins.rssParser();
|
||||
const resultingFeed = await parser.parseURL(urlArg);
|
||||
return resultingFeed;
|
||||
}
|
||||
}
|
@ -1,6 +1,8 @@
|
||||
// third party scope
|
||||
import rssParser from 'rss-parser';
|
||||
import * as feed from 'feed';
|
||||
|
||||
export {
|
||||
rssParser,
|
||||
feed
|
||||
};
|
||||
|
Reference in New Issue
Block a user