Skip to content

(feat/extract) URLs can now be optional in /extract#1346

Merged
nickscamara merged 2 commits intomainfrom
nsc/feat/extract-no-urls
Mar 17, 2025
Merged

(feat/extract) URLs can now be optional in /extract#1346
nickscamara merged 2 commits intomainfrom
nsc/feat/extract-no-urls

Conversation

@nickscamara
Copy link
Member

No description provided.

@nickscamara nickscamara requested a review from mogery as a code owner March 16, 2025 02:50
Copy link
Member

@mogery mogery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! This is great!

const headers = this.prepareHeaders();

let jsonData: { urls: string[] } & ExtractParams<T> = { urls, ...params };
let jsonData: { urls?: string[] } & ExtractParams<T> = { urls: urls || [], ...params };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd prefer if we just sent in undefined here but that's just me nitpicking

Suggested change
let jsonData: { urls?: string[] } & ExtractParams<T> = { urls: urls || [], ...params };
let jsonData: { urls?: string[] } & ExtractParams<T> = { urls, ...params };

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@nickscamara nickscamara merged commit 20c93db into main Mar 17, 2025
5 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants