substack-feed-api 1.0.3 → 1.0.4
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 +4 -17
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -83,23 +83,10 @@ export type SubstackItem = {
|
|
|
83
83
|
content: string;
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
-
export function isRawFeed(
|
|
87
|
-
feed: any,
|
|
88
|
-
): feed is { rss: { channel: RawFeedChannel[] } };
|
|
89
|
-
export function isRawFeedChannel(channel: any): channel is RawFeedChannel;
|
|
90
|
-
|
|
91
|
-
export const CORS_PROXY: string;
|
|
92
|
-
|
|
93
|
-
export function getRawXMLSubstackFeed(feedUrl: string): Promise<string>;
|
|
94
|
-
export function parseXML(
|
|
95
|
-
xml?: string,
|
|
96
|
-
callback?: (err: Error | null, result: any) => void,
|
|
97
|
-
): Promise<void>;
|
|
98
|
-
export function transformRawItem(item: RawItem): SubstackItem;
|
|
99
|
-
|
|
100
86
|
export function getSubstackFeed(
|
|
101
87
|
feedUrl: string,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
88
|
+
proxy: boolean,
|
|
89
|
+
callback: (err: Error | null, result: unknown) => void,
|
|
90
|
+
): Promise<string | undefined>;
|
|
91
|
+
export function getFeedByLink(rawFeed: unknown, link: string): RawFeedChannel[];
|
|
105
92
|
export function getPosts(channels: RawFeedChannel[]): SubstackItem[];
|