@@ -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 : [ ] ,
@@ -286,7 +286,7 @@ export function useAlgoliaSearch() {
286286 requests . push ( {
287287 indexName,
288288 query : '' ,
289- filters : `owner .name:${ checks . name } ` ,
289+ filters : `owners .name:${ checks . name } ` ,
290290 length : 1 ,
291291 analyticsTags : [ 'npmx.dev' ] ,
292292 attributesToRetrieve : EXISTENCE_CHECK_ATTRS ,
@@ -347,7 +347,7 @@ export function useAlgoliaSearch() {
347347 return {
348348 search,
349349 searchWithSuggestions,
350- searchByOwner ,
350+ searchByMaintainer ,
351351 getPackagesByName,
352352 }
353353}
0 commit comments