substack-feed-api 1.0.13 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export type RawFeed = {
2
2
  rss: {
3
3
  channel: RawFeedChannel[];
4
- [key: string]: any;
4
+ [key: string]: unknown;
5
5
  };
6
6
  };
7
7
 
@@ -90,3 +90,22 @@ export function getSubstackFeed(
90
90
  ): Promise<string | undefined>;
91
91
  export function getFeedByLink(rawFeed: unknown, link: string): RawFeedChannel[];
92
92
  export function getPosts(channels: RawFeedChannel[]): SubstackItem[];
93
+
94
+ // Goodreads RSS Feed Parser
95
+
96
+ // Goodreads Public Types
97
+ export interface GoodreadsItem {
98
+ title: string[];
99
+ link: string[];
100
+ book_image_url: string[];
101
+ author_name: string[];
102
+ book_description: string[];
103
+ [key: string]: unknown;
104
+ }
105
+
106
+ // Goodreads Public API
107
+ export const getGoodreadsFeed: (
108
+ feedUrl: string,
109
+ callback?: (err: Error | null, result: unknown) => void,
110
+ ) => Promise<unknown>;
111
+ export const getGoodreadsFeedItems: (rawFeed: unknown) => GoodreadsItem[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "substack-feed-api",
3
- "version": "1.0.13",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",