diff --git a/package-lock.json b/package-lock.json index 3463698..01b6cb8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "early", + "name": "@pushrocks/early", "version": "3.0.1", "lockfileVersion": 1, "requires": true, @@ -25,6 +25,14 @@ "typescript": "^2.9.1" } }, + "@pushrocks/consolecolor": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@pushrocks/consolecolor/-/consolecolor-2.0.1.tgz", + "integrity": "sha512-iOFCHVeFZ2OywbdwSxVI4/wokkcLrXVdHLgvMmkNhJ220eeLgjNZWx3EJo3vNW3zq5ybCSCUIq0878djBxrWpw==", + "requires": { + "ansi-256-colors": "^1.1.0" + } + }, "@pushrocks/smartdelay": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/@pushrocks/smartdelay/-/smartdelay-2.0.1.tgz", @@ -162,6 +170,7 @@ "version": "1.0.11", "resolved": "https://registry.npmjs.org/beautycolor/-/beautycolor-1.0.11.tgz", "integrity": "sha512-Uxl/39+2uqixPzsrV+0NOHf0sJlWmsKnRTV0oz8+bfwnHPA/E+SZuh3Upn3OXobv0W7LZg5BVoLj1nkMj7m5jA==", + "dev": true, "requires": { "ansi-256-colors": "^1.1.0", "typings-global": "^1.0.14" @@ -773,7 +782,8 @@ "typings-global": { "version": "1.0.28", "resolved": "https://registry.npmjs.org/typings-global/-/typings-global-1.0.28.tgz", - "integrity": "sha512-6VOwJWEY2971HOMHu/7sURzUXiD4/LiMJPsMAOqkHHAtS3MVpLFE5gzTiHilsH9KY5VE1mBQirWIgWFsDuo90A==" + "integrity": "sha512-6VOwJWEY2971HOMHu/7sURzUXiD4/LiMJPsMAOqkHHAtS3MVpLFE5gzTiHilsH9KY5VE1mBQirWIgWFsDuo90A==", + "dev": true }, "universalify": { "version": "0.1.2", diff --git a/package.json b/package.json index 6277bf4..e563e6b 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "@pushrocks/tapbundle": "^3.0.1" }, "dependencies": { - "@pushrocks/smartpromise": "^2.0.5", - "beautycolor": "^1.0.11" + "@pushrocks/consolecolor": "^2.0.1", + "@pushrocks/smartpromise": "^2.0.5" } } diff --git a/ts/index.ts b/ts/index.ts index d402fae..04b3ca7 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1,4 +1,4 @@ -import * as beautycolor from 'beautycolor'; +import * as consolecolor from '@pushrocks/consolecolor'; import * as smartpromise from '@pushrocks/smartpromise'; import { HrtMeasurement } from './early.hrtMeasurement'; @@ -20,7 +20,7 @@ export let start = function(moduleNameArg: string = '', loaderLengthArg: string startHrt = new HrtMeasurement(); startHrt.start(); if (doText) { - console.log(`**** starting ${beautycolor.coloredString(moduleNameArg, 'green')} ****`); + console.log(`**** starting ${consolecolor.coloredString(moduleNameArg, 'green')} ****`); } }; @@ -29,7 +29,7 @@ export let stop = (): Promise => { let earlyExecutionTime = startHrt.stop().milliSeconds; let earlyExecutionTimeString: string = (earlyExecutionTime / 1000).toString(); console.log( - `OK! -> finished loading within ${beautycolor.coloredString(earlyExecutionTimeString, 'blue')}` + `OK! -> finished loading within ${consolecolor.coloredString(earlyExecutionTimeString, 'blue')}` ); done.resolve(earlyExecutionTime); return done.promise;