Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngrx-store-logger

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngrx-store-logger - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

17

dist/index.d.ts

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc