Skip to content

Commit adc5fc1

Browse files
Release/patch (#19)
* feat: updated getSubstackFeedByLink method signature now returns raw XML string when no callback is passed * 1.0.3 * fix: updated declaration file * 1.0.4 * fix: updated declaration * 1.0.5 * fix: updated parsing for non browser calls - updated non browser calls - added jest config and test * 1.0.6 * fix: updated parsing for non browser calls * 1.0.7 * fix: determine client or server call * 1.0.8 * chore: fixed error in package.json * 1.0.9 * chore: fixed build issues * 1.0.10 * fix: fixed issues with client and server fetching * 1.0.11 * chore: removed .tgz * 1.0.12 * Pre-version bump changes * 1.0.13 * chore: cleanup removed logs * 1.0.14 * chore: updated types * 1.1.1 --------- Co-authored-by: GitHub Actions <actions@github.com>
1 parent 94c0932 commit adc5fc1

4 files changed

Lines changed: 10 additions & 16 deletions

File tree

index.d.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ export function getPosts(channels: RawFeedChannel[]): SubstackItem[];
9494
// Goodreads RSS Feed Parser
9595

9696
// 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[];
97+
export type GoodreadsItem = {
98+
title: string;
99+
link: string;
100+
book_image_url: string;
101+
author_name: string;
102+
book_description: string;
103103
[key: string]: unknown;
104-
}
104+
};
105105

106106
// Goodreads Public API
107107
export const getGoodreadsFeed: (

lib/types.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export type RawFeed = {
22
rss: {
33
channel: RawFeedChannel[];
4-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
54
[key: string]: unknown;
65
};
76
};
@@ -93,14 +92,12 @@ export type RawGoodreadsFeed = {
9392

9493
export type RawGoodreadsFeedRSS = {
9594
channel: RawGoodreadsFeedChannel[];
96-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
9795
[key: string]: unknown;
9896
};
9997

10098
export type RawGoodreadsFeedChannel = {
10199
title: string[];
102100
item: RawGoodreadsItem[];
103-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
104101
[key: string]: unknown;
105102
};
106103

@@ -110,14 +107,12 @@ export type RawGoodreadsItem = {
110107
book_image_url: string[];
111108
author_name: string[];
112109
book_description: string[];
113-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
114110
[key: string]: unknown;
115111
};
116112

117113
export type GoodreadsFeedChannel = {
118114
title: string;
119115
item: GoodreadsItem[];
120-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
121116
[key: string]: unknown;
122117
};
123118

@@ -127,6 +122,5 @@ export type GoodreadsItem = {
127122
book_image_url: string;
128123
author_name: string;
129124
book_description: string;
130-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
131125
[key: string]: unknown;
132126
};

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "substack-feed-api",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"type": "module",
55
"files": [
66
"dist",

0 commit comments

Comments
 (0)