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.5 to 0.0.6

2

package.json
{
"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 @@ }

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