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:
2025-10-31 17:07:13 +00:00
parent 29b1420b1a
commit 622b74e628
15 changed files with 8140 additions and 17157 deletions

View File

@@ -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();
}
}
}