
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
ngrx-store-logger
Advanced tools
Advanced logging for @ngrx/store applications, ported from redux-logger.
ngrx-store-logger
depends on @ngrx/store and Angular 2.
npm install ngrx-store-logger --save
provideStore
.loggerMiddleware
function, specify option overrides.import {bootstrap} from 'angular2/platform/browser';
import {TodoApp} from './todo-app';
import {provideStore} from "@ngrx/store";
import {loggerMiddleware} from "ngrx-store-logger";
export function main() {
return bootstrap(TodoApp, [
provideStore({todos, visibilityFilter}),
//taking all defaults
...loggerMiddleware()
])
.catch(err => console.error(err));
}
document.addEventListener('DOMContentLoaded', main);
loggerMiddleware(options : LoggerOptions = {})
Initializes logger middleware with appropriate options (logical defaults if no options supplied)
options
(Object): Available logger optionsinterface 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
colors? : {
title: (action : Object) => string;
prevState: (prevState : Object) => string;
action: (action: Object) => string;
nextState: (nextState : Object) => string;
error: (error: any, prevState: Object) => string;
}
}
FAQs
Advanced logging middleware for @ngrx/store
The npm package ngrx-store-logger receives a total of 6,095 weekly downloads. As such, ngrx-store-logger popularity was classified as popular.
We found that ngrx-store-logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.