mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-30 16:29:53 +00:00
Replace npms with npm registry
This commit is contained in:
parent
0d71cebb7e
commit
166fc2e78b
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user