Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/composables/useNpmRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export function useNpmSearch(
}

const params = new URLSearchParams()
params.set('text', q)
params.set('text', q.toLowerCase())
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🤔 I'll defer to @danielroe here but I think ideally we would normalize this a bit further upstream so that the caching (line 241–242) can collapse to a normalize key.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

yes, that makes sense.

also - if the API returns different results based on case, is this really something we should obscure?

const opts = toValue(options)
if (opts.size) params.set('size', String(opts.size))
if (opts.from) params.set('from', String(opts.from))
Expand Down
Loading