@@ -161,8 +161,8 @@ export function useAlgoliaSearch() {
161161 }
162162 }
163163
164- /** Fetch all packages for an owner using `owner .name` filter with pagination. */
165- async function searchByOwner (
164+ /** Fetch all packages for a maintainer using `owners .name` filter with pagination. */
165+ async function searchByMaintainer (
166166 ownerName : string ,
167167 options : { maxResults ?: number } = { } ,
168168 ) : Promise < NpmSearchResponse > {
@@ -185,7 +185,7 @@ export function useAlgoliaSearch() {
185185 query : '' ,
186186 offset,
187187 length,
188- filters : `owner .name:${ ownerName } ` ,
188+ filters : `owners .name:${ ownerName } ` ,
189189 analyticsTags : [ 'npmx.dev' ] ,
190190 attributesToRetrieve : ATTRIBUTES_TO_RETRIEVE ,
191191 attributesToHighlight : [ ] ,
@@ -314,7 +314,7 @@ export function useAlgoliaSearch() {
314314 requests . push ( {
315315 indexName,
316316 query : '' ,
317- filters : `owner .name:${ checks . name } ` ,
317+ filters : `owners .name:${ checks . name } ` ,
318318 length : 1 ,
319319 analyticsTags : [ 'npmx.dev' ] ,
320320 attributesToRetrieve : EXISTENCE_CHECK_ATTRS ,
@@ -375,7 +375,7 @@ export function useAlgoliaSearch() {
375375 return {
376376 search,
377377 searchWithSuggestions,
378- searchByOwner ,
378+ searchByMaintainer ,
379379 getPackagesByName,
380380 }
381381}
0 commit comments