substack-feed-api 1.0.3 → 1.0.5

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.
Files changed (2) hide show
  1. package/index.d.ts +4 -17
  2. 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
- callback: (err: Error | null, result: any) => void,
103
- ): Promise<void>;
104
- export function getFeedByLink(rawFeed: any, link: string): RawFeedChannel[];
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[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "substack-feed-api",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",