Skip to content

Commit

Permalink
Release/patch (#12)
Browse files Browse the repository at this point in the history
* 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

---------

Co-authored-by: GitHub Actions <actions@github.com>
  • Loading branch information
rohit1901 and actions-user authored Feb 7, 2025
1 parent 00eb062 commit 4db5c3d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ export type SubstackItem = {

export function getSubstackFeed(
feedUrl: string,
proxy: boolean,
callback: (err: Error | null, result: unknown) => void,
proxy?: boolean,
callback?: (err: Error | null, result: unknown) => void,
): Promise<string | undefined>;
export function getFeedByLink(rawFeed: unknown, link: string): RawFeedChannel[];
export function getPosts(channels: RawFeedChannel[]): SubstackItem[];
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "substack-feed-api",
"version": "1.0.4",
"version": "1.0.5",
"type": "module",
"files": [
"dist",
Expand Down

0 comments on commit 4db5c3d

Please sign in to comment.