nl_tokens: Fetches details for a particular plugin .
pl_tokens: function ( pluginSlug ) { const query = { fields : 'icons,banners,compatibility,ratings,-contributors' , locale : getWporgLocaleCode ( ) , } ; pluginSlug = pluginSlug . replace ( new RegExp ( '.php$' ) , '' ) ; const baseUrl = 'https://api.wordpress.org/plugins/info/1.0/' + pluginSlug + '.jsonp' ; return new Promise ( ( resolve , reject ) => { jsonp ( baseUrl , query , function ( error , data ) { if ( error ) { debug ( 'error downloading plugin details from .org: %s' , error ) ; reject ( error ) ; return ; } if ( ! data || ! <mask> . slug ) { debug ( 'unrecognized format fetching plugin details from .org: %s' , data ) ; reject ( new Error ( 'Unrecognized response format' ) ) ; return ; } resolve ( data ) ; } ) ; } ) ; }