add beautycolor
This commit is contained in:
@ -54,7 +54,7 @@ export class NpmRegistry {
|
||||
if (searchObjectArg.popularityWeight) { addToSearchString(`author:${searchObjectArg.popularityWeight}`) }
|
||||
if (searchObjectArg.maintenanceWeight) { addToSearchString(`author:${searchObjectArg.maintenanceWeight}`) }
|
||||
|
||||
plugins.beautylog.log(`Search for "${searchString}" on npm`)
|
||||
plugins.beautylog.log(`Search on npm for ${plugins.beautycolor.coloredString(searchString, 'pink')}`)
|
||||
|
||||
let response = (await plugins.smartrequest.get(this.searchDomain + searchString, {}))
|
||||
let body: any = response.body
|
||||
|
@ -1,9 +1,11 @@
|
||||
import 'typings-global'
|
||||
|
||||
import * as beautycolor from 'beautycolor'
|
||||
import * as beautylog from 'beautylog'
|
||||
import * as smartrequest from 'smartrequest'
|
||||
|
||||
export {
|
||||
beautycolor,
|
||||
beautylog,
|
||||
smartrequest
|
||||
}
|
||||
|
Reference in New Issue
Block a user