@ngx-next/logger
Advanced tools
Comparing version 0.7.139-next.180 to 0.7.139-next.181
{ | ||
"name": "@ngx-next/logger", | ||
"version": "0.7.139-next.180", | ||
"version": "0.7.139-next.181", | ||
"main": "lib/src/index.js", | ||
@@ -9,3 +9,2 @@ "types": "lib/src/index.d.ts", | ||
"execa": "1.x.x", | ||
"npmlog": "4.x.x", | ||
"ts-log": "2.x.x" | ||
@@ -12,0 +11,0 @@ }, |
@@ -1,7 +0,5 @@ | ||
import * as log from 'npmlog'; | ||
import { Logger } from 'ts-log'; | ||
export declare class NgxLogger implements Logger { | ||
brand: string; | ||
log: typeof log; | ||
constructor(); | ||
_brand: string; | ||
brand: any; | ||
cli(title: string, message: any): void; | ||
@@ -8,0 +6,0 @@ debug(title: string, message: any): void; |
@@ -5,10 +5,12 @@ "use strict"; | ||
const fs = require("fs"); | ||
const log = require("npmlog"); | ||
class NgxLogger { | ||
constructor() { | ||
this.brand = chalk_1.default.bold.italic.cyanBright('@ngx-next'); | ||
this.log = log; | ||
this.log.heading = this.brand; | ||
this.log.silly('test', 'message'); | ||
this._brand = chalk_1.default.bold.italic.cyanBright('@ngx-next'); | ||
} | ||
get brand() { | ||
return this._brand; | ||
} | ||
set brand(brand) { | ||
this._brand = brand; | ||
} | ||
cli(title, message) { | ||
@@ -15,0 +17,0 @@ console.log(this.brand, chalk_1.default.yellow(`:${title}:`), chalk_1.default.bold.whiteBright(message)); |
Sorry, the diff of this file is not supported yet
3
9355
- Removednpmlog@4.x.x
- Removedansi-regex@2.1.1(transitive)
- Removedaproba@1.2.0(transitive)
- Removedare-we-there-yet@1.1.7(transitive)
- Removedcode-point-at@1.1.0(transitive)
- Removedconsole-control-strings@1.1.0(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removeddelegates@1.0.0(transitive)
- Removedgauge@2.7.4(transitive)
- Removedhas-unicode@2.0.1(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-fullwidth-code-point@1.0.0(transitive)
- Removedisarray@1.0.0(transitive)
- Removednpmlog@4.1.2(transitive)
- Removednumber-is-nan@1.0.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedset-blocking@2.0.0(transitive)
- Removedstring-width@1.0.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedwide-align@1.1.5(transitive)