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/dist/substackFeedApi.js +1134 -1098
- package/dist/substackFeedApi.umd.cjs +9 -9
- package/index.d.ts +20 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type RawFeed = {
|
|
2
2
|
rss: {
|
|
3
3
|
channel: RawFeedChannel[];
|
|
4
|
-
[key: string]:
|
|
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[];
|