Skip to content

Commit

Permalink
Replace npms with npm registry
Browse files Browse the repository at this point in the history
  • Loading branch information
LacazeThomas authored and Eugeny committed Aug 20, 2022
1 parent 0d71ceb commit 166fc2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tabby-plugin-manager/src/services/pluginManager.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ export class PluginManagerService {

_listAvailableInternal (namePrefix: string, keyword: string, query?: string): Observable<PluginInfo[]> {
return from(
axios.get(`https://api.npms.io/v2/search?q=keywords%3A${keyword}+${encodeURIComponent(query ?? '')}&size=250`)
axios.get(`https://registry.npmjs.com/-/v1/search?text=keywords%3A${keyword}%20${query}&size=250`)
).pipe(
map(response => response.data.results
map(response => response.data.objects
.filter(item => !item.keywords?.includes('tabby-dummy-transition-plugin'))
.map(item => ({
name: item.package.name.substring(namePrefix.length),
Expand Down

0 comments on commit 166fc2e

Please sign in to comment.