Skip to content

Commit

Permalink
fix: missing & in registery query (#278)
Browse files Browse the repository at this point in the history
<!-- 👋 Hi, thanks for sending a PR to npm-username-to-packages! 💖.
Please fill out all fields below and make sure each item is true and [x]
checked.
Otherwise we may not be able to review your PR. -->

## PR Checklist

- [x] Addresses an existing open issue: fixes #277
- [x] That issue was marked as [`status: accepting
prs`](https://github.com/JoshuaKGoldberg/npm-username-to-packages/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
- [x] Steps in
[CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/npm-username-to-packages/blob/main/.github/CONTRIBUTING.md)
were taken

## Overview

The queried URL was passing a weird string for `from`.

💖
  • Loading branch information
JoshuaKGoldberg authored Nov 28, 2024
1 parent 6b3b96f commit 7a63bab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/npmUsernameToPackages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function npmUsernameToPackages(maintainer: string) {

while (true) {
const response = await fetch(
`https://registry.npmjs.com/-/v1/search?from=${packages.length}size=250&text=maintainer:${maintainer}`,
`https://registry.npmjs.com/-/v1/search?from=${packages.length}&size=250&text=maintainer:${maintainer}`,
{
headers: { "Content-Type": "application/json" },
},
Expand Down

0 comments on commit 7a63bab

Please sign in to comment.