fix(dependencies): update to latest versions

This commit is contained in:
2018-09-01 16:13:37 +02:00
parent 6832327643
commit 8ce9b08153
9 changed files with 884 additions and 32 deletions

View File

@ -54,11 +54,11 @@ export class NpmRegistry {
if (searchObjectArg.popularityWeight) { addToSearchString(`author:${searchObjectArg.popularityWeight}`) }
if (searchObjectArg.maintenanceWeight) { addToSearchString(`author:${searchObjectArg.maintenanceWeight}`) }
plugins.beautylog.log(`Search on npm for ${plugins.beautycolor.coloredString(searchString, 'pink')}`)
plugins.smartlog.defaultLogger.info(`Search on npm for ${plugins.consolecolor.coloredString(searchString, 'pink')}`)
let body: any;
try {
let response = (await plugins.smartrequest.get(this.searchDomain + searchString, {}))
let response = (await plugins.smartrequest.getJson(this.searchDomain + searchString, {}))
body = response.body
} catch {
// we do nothing

View File

@ -1,9 +1,6 @@
import * as beautycolor from 'beautycolor'
import * as beautylog from 'beautylog'
import * as smartrequest from 'smartrequest'
import * as consolecolor from '@pushrocks/consolecolor';
import * as smartlog from '@pushrocks/smartlog';
smartlog.defaultLogger.enableConsole();
import * as smartrequest from '@pushrocks/smartrequest';
export {
beautycolor,
beautylog,
smartrequest
}
export { consolecolor, smartlog, smartrequest };