Skip to content

Commit 7141598

Browse files
committed
Add code comment linking to npm search API docs
1 parent f4959db commit 7141598

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pages/plugins/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ async function fetchPackages(keywords, searchText = '', pageNumber = 0) {
159159
const text = search.join(' ');
160160

161161
try {
162+
// https://github.com/npm/registry/blob/master/docs/REGISTRY-API.md#get-v1search
162163
const initialUrl = `${baseUrl}?from=${from}&text=${text}&quality=0.5&popularity=1.0&maintenance=0.1`;
163164
const response = await fetch(initialUrl);
164165
const { total, objects } = await response.json();

0 commit comments

Comments
 (0)