Closed jessecoleman closed 1 month ago
I think on this line, it needs to be
const url = `${baseUrl ?? ""}${updatedEndpoint}${query_params.size ? '?' : ''}${query_params.toString()}`;
Or something to that effect.
Thank you, fixed in 2.1.45
npx ***@***.***
On Sat, Sep 7, 2024 at 7:44 AM Cole Chamberlin @.***> wrote:
I think on this line, it needs to be
const url = `${baseUrl ?? ""}${updatedEndpoint}${query_params.size ? '?' : ''}${query_params.toString()}`;
Or something to that effect.
— Reply to this email directly, view it on GitHub https://github.com/Bewinxed/svetch/issues/5#issuecomment-2335040077, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACFY5BIBVC3KOKKN4G46THTZVKAEFAVCNFSM6AAAAABNZVU6H2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZVGA2DAMBXG4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thanks, seems to be working now!
Hi, just started playing around with this library, no configuration yet. But right off the bat I noticed that query params are not being separated from the URL path by a
?
Example:
Result:
This can be fixed by adding a question mark to the first param of
svetch.get
but that breaks the types. Thanks for the cool library!