Socket
Socket
Sign inDemoInstall

logrocket-ngrx

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logrocket-ngrx - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

13

dist/lib/index.js

@@ -10,12 +10,15 @@ "use strict";

var reduxMiddleware = logrocket.reduxMiddleware(options);
var currentState;
var store;
// return a metareducer
return function (reducer) {
var currentState;
var fakeDispatch = reduxMiddleware({
getState: function () { return currentState; },
})(function () { });
return function (state, action) {
var newState = reducer(state, action);
currentState = state;
fakeDispatch(action);
if (!store) {
store = reduxMiddleware({
getState: function () { return currentState; },
});
}
store(function () { return newState; })(action);
return newState;

@@ -22,0 +25,0 @@ };

{
"name": "logrocket-ngrx",
"version": "0.1.0",
"version": "0.1.1",
"description": "ngrx middleware for [LogRocket](https://logrocket.com/).",

@@ -5,0 +5,0 @@ "main": "dist/lib/index.js",

@@ -13,6 +13,10 @@ # LogRocket ngrx Middleware

**May 10, 2018**: v0.1.1
- Fixed a bug with initial state not being recorded correctly.
- Fixed a bug with feature state resending initial state events.
**March 30, 2018**: v0.1.0
- Added TypeScript types and jsdoc-style comments for inline documentation
- Added TypeScript types and jsdoc-style comments for inline documentation.
- Added peer dependency on `logrocket` and `@ngrx/store` packages.
- Added this changelog.
- Changed file location of main entry file.

Sorry, the diff of this file is not supported yet

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