From 4db5c3d3858d8a7d896b5f8c47b50f137da6281d Mon Sep 17 00:00:00 2001 From: Rohit Khanduri Date: Fri, 7 Feb 2025 22:26:15 +0100 Subject: [PATCH] Release/patch (#12) * 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 --- index.d.ts | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.d.ts b/index.d.ts index d8c4d9a..615f89f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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; export function getFeedByLink(rawFeed: unknown, link: string): RawFeedChannel[]; export function getPosts(channels: RawFeedChannel[]): SubstackItem[]; diff --git a/package-lock.json b/package-lock.json index 423d929..771790a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "substack-feed-api", - "version": "1.0.4", + "version": "1.0.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "substack-feed-api", - "version": "1.0.4", + "version": "1.0.5", "devDependencies": { "@eslint/js": "^9.5.0", "@types/eslint__js": "^8.42.3", diff --git a/package.json b/package.json index f2b4138..3aeb9bf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "substack-feed-api", - "version": "1.0.4", + "version": "1.0.5", "type": "module", "files": [ "dist",