File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,13 +133,13 @@ export class Plugins extends EventEmitter {
133133 }
134134
135135 async getFromNpm ( ) {
136- const url = 'https://api.npms.io/v2/ search?q =keywords:kap-plugin+not:deprecated' ;
136+ const url = 'https://registry.npmjs.com/-/v1/ search?text =keywords:kap-plugin+not:deprecated' ;
137137 const response = ( await got ( url , { json : true } ) ) as {
138- body : { results : Array < { package : NormalizedPackageJson } > } ;
138+ body : { objects : Array < { package : NormalizedPackageJson } > } ;
139139 } ;
140140 const installed = this . pluginNames ;
141141
142- return Promise . all ( response . body . results
142+ return Promise . all ( response . body . objects
143143 . map ( x => x . package )
144144 . filter ( x => x . name . startsWith ( 'kap-' ) )
145145 . filter ( x => ! installed . includes ( x . name ) ) // Filter out installed plugins
You can’t perform that action at this time.
0 commit comments