ngrx-store-logger
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -7,10 +7,10 @@ import { Provider } from "angular2/core"; | ||
timestamp?: boolean; | ||
stateTransformer?: (state: Object) => Object; | ||
actionTransformer?: (actn: Object) => Object; | ||
stateTransformer?: Transformer; | ||
actionTransformer?: Transformer; | ||
colors?: { | ||
title: (action: Object) => string; | ||
prevState: (prevState: Object) => string; | ||
action: (action: Object) => string; | ||
nextState: (nextState: Object) => string; | ||
error: (error: any, prevState: Object) => string; | ||
title: ColorOptions; | ||
prevState: ColorOptions; | ||
action: ColorOptions; | ||
nextState: ColorOptions; | ||
error: ColorOptions; | ||
}; | ||
@@ -21,2 +21,5 @@ } | ||
} | ||
export interface Transformer { | ||
(Object: any): Object; | ||
} | ||
export declare const loggerMiddleware: (opts?: LoggerOptions) => (Provider | Provider[])[]; |
{ | ||
"name": "ngrx-store-logger", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Advanced logging middleware for @ngrx/store", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -14,10 +14,10 @@ import {OpaqueToken, provide, Provider} from "angular2/core"; | ||
timestamp? : boolean, //Print timestamp with action? | ||
stateTransformer? : (state : Object) => Object, //Transform state before print | ||
actionTransformer? : (actn : Object) => Object, //Transform action before print | ||
stateTransformer? : Transformer, //Transform state before print | ||
actionTransformer? : Transformer, //Transform action before print | ||
colors? : { | ||
title: (action : Object) => string, | ||
prevState: (prevState : Object) => string, | ||
action: (action: Object) => string, | ||
nextState: (nextState : Object) => string, | ||
error: (error: any, prevState: Object) => string | ||
title: ColorOptions, | ||
prevState: ColorOptions, | ||
action: ColorOptions, | ||
nextState: ColorOptions, | ||
error: ColorOptions | ||
} | ||
@@ -30,2 +30,6 @@ } | ||
export interface Transformer { | ||
(Object) : Object | ||
} | ||
declare var console; | ||
@@ -32,0 +36,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
358
19732