ngrx-store-logger
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "ngrx-store-logger", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Advanced logging middleware for @ngrx/store", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -46,16 +46,16 @@ # ngrx-store-logger | ||
interface LoggerOptions { | ||
level? : 'log' | 'console' | 'warn' | 'error' | 'info', //default log | ||
collapsed? : boolean, //Should log group be collapsed? default: false | ||
duration? : boolean, //Print duration with action? default: false | ||
timestamp? : boolean, //Print timestamp with action? default: true | ||
stateTransformer? : (state : Object) => Object, //Transform state before print default: state => state | ||
actionTransformer? : (actn : Object) => Object, //Transform action before print default: actn => actn | ||
level? : 'log' | 'console' | 'warn' | 'error' | 'info'; //default log | ||
collapsed? : boolean; //Should log group be collapsed? default: false | ||
duration? : boolean; //Print duration with action? default: false | ||
timestamp? : boolean; //Print timestamp with action? default: true | ||
stateTransformer? : (state : Object) => Object; //Transform state before print default: state => state | ||
actionTransformer? : (actn : Object) => Object; //Transform action before print default: actn => actn | ||
colors? : { | ||
title: (action : Object) => string, | ||
prevState: (prevState : Object) => string, | ||
action: (action: Object) => string, | ||
nextState: (nextState : Object) => string, | ||
error: (error: any, prevState: Object) => string | ||
title: (action : Object) => string; | ||
prevState: (prevState : Object) => string; | ||
action: (action: Object) => string; | ||
nextState: (nextState : Object) => string; | ||
error: (error: any, prevState: Object) => string; | ||
} | ||
} | ||
``` |
@@ -10,14 +10,14 @@ import {OpaqueToken, provide, Provider} from "angular2/core"; | ||
export interface LoggerOptions { | ||
level? : 'log' | 'console' | 'warn' | 'error' | 'info', | ||
collapsed? : boolean, //Should log group be collapsed? | ||
duration? : boolean, //Print duration with action? | ||
timestamp? : boolean, //Print timestamp with action? | ||
stateTransformer? : Transformer, //Transform state before print | ||
actionTransformer? : Transformer, //Transform action before print | ||
level? : 'log' | 'console' | 'warn' | 'error' | 'info'; | ||
collapsed? : boolean; //Should log group be collapsed? | ||
duration? : boolean; //Print duration with action? | ||
timestamp? : boolean; //Print timestamp with action? | ||
stateTransformer? : Transformer; //Transform state before print | ||
actionTransformer? : Transformer; //Transform action before print | ||
colors? : { | ||
title: ColorOptions, | ||
prevState: ColorOptions, | ||
action: ColorOptions, | ||
nextState: ColorOptions, | ||
error: ColorOptions | ||
title: ColorOptions; | ||
prevState: ColorOptions; | ||
action: ColorOptions; | ||
nextState: ColorOptions; | ||
error: ColorOptions; | ||
} | ||
@@ -24,0 +24,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19734