chore: update README for clarity and formatting improvements
fix: update test imports to use new package path refactor: improve feed class structure and formatting refactor: enhance smartfeed class for better readability chore: streamline plugin exports for consistency chore: update TypeScript configuration for improved compatibility ci: add workflows for handling tag and non-tag pushes
This commit is contained in:
@@ -39,11 +39,11 @@ export class Feed {
|
||||
author: {
|
||||
name: this.options.company,
|
||||
email: this.options.companyEmail,
|
||||
link: this.options.companyEmail
|
||||
link: this.options.companyEmail,
|
||||
},
|
||||
description: this.options.description,
|
||||
generator: '@pushrocks/smartfeed',
|
||||
language: "en"
|
||||
language: 'en',
|
||||
});
|
||||
|
||||
feed.addCategory(this.options.category);
|
||||
@@ -54,9 +54,11 @@ export class Feed {
|
||||
link: itemArg.url.replace(/&/gm, '&'),
|
||||
image: itemArg.imageUrl.replace(/&/gm, '&'),
|
||||
content: itemArg.content,
|
||||
author: [{
|
||||
name: itemArg.authorName
|
||||
}]
|
||||
author: [
|
||||
{
|
||||
name: itemArg.authorName,
|
||||
},
|
||||
],
|
||||
});
|
||||
}
|
||||
return feed;
|
||||
@@ -73,4 +75,4 @@ export class Feed {
|
||||
public exportJsonFeed(): string {
|
||||
return this.getFeedObject().json1();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user